![输入正确密码后没有用于 ssh 连接的 shell](https://linux22.com/image/921081/%E8%BE%93%E5%85%A5%E6%AD%A3%E7%A1%AE%E5%AF%86%E7%A0%81%E5%90%8E%E6%B2%A1%E6%9C%89%E7%94%A8%E4%BA%8E%20ssh%20%E8%BF%9E%E6%8E%A5%E7%9A%84%20shell.png)
我有两台主机,它们在同一个 wifi 子网中安装了 20.04 Testing,并连接到我的 AP。我希望在它们之间安全地传输文件,所以我选择了 sh/scp。当我从一台主机连接到另一台主机时,我输入了正确的密码,点击了 enten,几分钟内什么都没有显示。从两台主机到一台主机执行相同的操作会得到相同的结果。
$ ssh user@ip -v
.....
[email protected]'s password:
debug1: Authentication succeeded (password).
Authenticated to 192.168.43.59 ([192.168.43.59]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype [email protected]
want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = pl_PL.UTF-8
----end-------
ssh 服务 ssh 状态:
lut 23 16:02:11 W540 systemd[1]: Starting OpenBSD Secure Shell server...
lut 23 16:02:11 W540 sshd[2398]: Server listening on 0.0.0.0 port 22.
lut 23 16:02:11 W540 sshd[2398]: Server listening on :: port 22.
lut 23 16:02:11 W540 systemd[1]: Started OpenBSD Secure Shell server.
lut 23 17:11:13 W540 sshd[31356]: Accepted password for adi from 192.168.43.16 port 41698 ssh2
我没有收到 bash 提示的原因是什么?