ssh 总是把我赶出去

ssh 总是把我赶出去

我无法通过 ssh 访问客户端的服务器,甚至无法从控制台访问。它似乎让我进入,然后又把我赶出去了。这是我使用详细选项的会话(我已将 IP 更改为 192.168.0.1):

debug1: Next authentication method: password
[email protected]'s password: 
debug1: Authentication succeeded (password).
Authenticated to 192.168.0.1 ([192.168.0.1]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Fri Dec  2 03:26:47 2011 from gateway.web.net
Usage: ipaliases {start|stop|restart|reload}

debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to 192.168.0.1 closed.
Transferred: sent 2448, received 2232 bytes, in 0.3 seconds
Bytes per second: sent 9160.2, received 8351.9
debug1: Exit status 1

我从恢复控制台挂载了磁盘并确保防火墙已禁用。有人能帮我吗?另外,我不明白上面的 ipaliases 消息是什么意思。谢谢。

答案1

看起来/etc/profileor root 的.bashrcor中.bash_profile有一个命令,但调用不正确(因此出现该行)。如果没有看到这些文件,很难确定,但我会首先查看这些文件。ipaliasesUsage: ...

如果可以,请以另一个(非特权)用户身份登录,尝试运行su -以获取 root 权限并查看上述文件中的任何ipaliases命令。

相关内容