我有一个奇怪的问题。每次我点击Ctrl+D或使用logout
或 时exit
,我都会看到
Connection to remote.host.com closed
然后我立即重新登录:
Last login: Thu Oct 6 21:04:20 2011 from xyz
[email protected] ~ $
为什么会发生这种情况?我怎样才能让它停止?
答案1
在 SSH 客户端中查找显示“如果断开连接则重新连接”的选项。如果您使用的是命令行客户端,请检查它是否没有运行类似的内容function ssh() { while true; ssh "$@"; done; }