下面是登录信息和登录日志。请问该怎么解决,谢谢!
I am trying to connect to a remote server using ssh. The session will be closed immediately after it is successfully connected. The messages and auth log are as follows (IP stress are masked). I would appreciate it if someone can help me fix this issue.
登录信息
➜ ~ ssh -p 22 user@10.0.0.0
user@10.0.0.0's password:
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-142-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
97 packages can be updated.
2 updates are security updates.
Last login: Fri Jun 10 18:10:10 2022 from 10.103.0.2
Connection to 10.0.0.0 closed.
➜ ~
登录信息 调试
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-142-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
97 packages can be updated.
2 updates are security updates.
Last login: Fri Jun 10 18:08:18 2022 from 10.103.0.2
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to 10.0.0.0 closed.
Transferred: sent 2684, received 2932 bytes, in 0.6 seconds
Bytes per second: sent 4442.4, received 4852.9
debug1: Exit status -1
登录日志
/var/log/auth.log
Jun 10 20:07:57 miracle-101 sshd[10517]: Accepted password for user from 10.0.0.0 port 7206 ssh2
Jun 10 20:07:57 miracle-101 sshd[10517]: pam_unix(sshd:session): session opened for user user by (uid=0)
Jun 10 20:07:57 miracle-101 systemd-logind[1529]: New session 179 of user user.
Jun 10 20:07:57 miracle-101 systemd: pam_unix(systemd-user:session): session opened for user user by (uid=0)
Jun 10 20:07:58 miracle-101 sshd[10590]: Received disconnect from 10.100.0.2 port 7206:11: disconnected by user
Jun 10 20:07:58 miracle-101 sshd[10590]: Disconnected from 10.103.0.2 port 7206
Jun 10 20:07:58 miracle-101 sshd[10517]: pam_unix(sshd:session): session closed for user user