仅用于代理访问的登录shell(ssh-D)?

pw136qt2  于 12个月前  发布在  Shell
关注(0)|答案(1)|浏览(93)

我想在远程主机上创建一个用户(例如,proxy.example.com),是否有一些受限制的登录shell,如git-shell,用于仅代理的ssh访问?

kr98yfug

kr98yfug1#

写你自己的!restricted-shell.c

#include <stdio.h>

int main() {
  printf("You are now connected to the proxy. Press enter to exit.\n");
  scanf("*c");
  exit(0);
}

相关问题