2012-08-31 32 views
1

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

+0

你可能有一些运气的'ChrootDirectory'配置:http://www.securityfocus.com/archive/121/503450/30/570/threaded –

回答

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); 
}