2012-08-31 61 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); 
}