closuresssh会话

我正在使用〜/ .ssh / config来logging到internal.local公司服务器:

 Host internal.local ProxyCommand ssh -e none corporate.proxy nc %h %p 

但是在closures会话(键入exit )之后,服务器上的sshd会话保持活动状态(我通过不同的连接看到它)。

我该如何closures会议或以适当的方式更改我的configuration,以便消除挂断会话?

首先从第二个根会话中检查: ps -fu user_name

 user_name 861 855 0 16:58:16 pts/3 0:00 -bash user_name 855 854 0 16:58:13 ? 0:00 /usr/lib/ssh/sshd 

注销后:

 user_name 855 854 0 16:58:13 ? 0:00 /usr/lib/ssh/sshd 

scp文件到/从internal.local一个新的scp会话仍然挂在服务器上。

使用

 # for Solaris ProxyCommand ssh -e none corporate.proxy nc %h %p -c 

要么

 # for *nix ProxyCommand ssh -e none corporate.proxy nc %h %p -w 5 

-c在Solaris上运行后closures连接,在* nix系统上-w是一样的。