ssh 连接 远程主机 报错 Permission denied (publickey)
解决方法首先登陆到远程主机并配置文件
sudo vim /etc/ssh/sshd_config
找到PasswordAuthentication
将 PasswordAuthentication no 改为 PasswordAuthentication yes,保存
然后使用命令:
sudo service ssh restart
即可连接远程服务器或内网电脑
sudo ssh 【username】@【ip 地址】 输入yes,输入密码,连接成功。
sudo ssh panda8z@109.100.102.8



