无法通过 ssh 连接到服务器

无法通过 ssh 连接到服务器

我跟着教程,当我尝试连接到服务器时,出现此错误:

packet_write_wait: Connection to x.x.x.x port 22: Broken pipe

sudo journalctl -u ssh.service我得到:

Aug 14 03:16:34 my_server sshd[2280]: Accepted publickey for myuser from my_ip port my_port ssh2: RSA *********
Aug 14 03:16:34 my_server sshd[2280]: pam_unix(sshd:session): session opened for user myuser by (uid=0)
Aug 14 03:16:35 my_server sshd[2280]: pam_unix(sshd:session): session closed for user myuser 

我在文件夹外部创建了用户/var/www,并将我的电脑 shh 密钥添加到authorized_keys服务器上。

相关内容