我跟着这教程,当我尝试连接到服务器时,出现此错误:
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
服务器上。