SSH连接linux服务器

服务器设置

1.安装openssl-server(有些服务器会内置,查看方法:sudo service ssh status)

2.ssh密码登录方式: (1)登录目标机器 打开 /etc/ssh/sshd_config 修改PasswordAuthentication no 为:PasswordAuthentication yes

          (2)重启ssh服务:sudo service ssh restart

 

ps:client 密码登录方式连接服务器过程中如果出现:Permission denied (publickey),说明需要执行第(1)步

posted @ 2019-07-23 14:40  两斤  阅读(302)  评论(0编辑  收藏  举报