登录shell代理(ssh-D)只能访问?

时间:2012-08-31 02:25:12

标签: security shell ssh

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

1 个答案:

答案 0 :(得分:1)

自己写! 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);
}