- N +

OVH Cloud 服务器取消密钥登录

OVH Cloud 服务器取消密钥登录原标题:OVH Cloud 服务器取消密钥登录

导读:

OVH服务器默认使用密钥进行登录,使用起来不是很方便,所以修改为密码进行登录!顺便修改下登录的端口号,以后就可以快乐的玩耍啦......

一、 修改 PasswordAuthentication no

#切换到特权模式
sudo -i 
nano /etc/ssh/sshd_config
#修改 PasswordAuthentication no为 PasswordAuthentication yes

二、修改登录端口号

#将/etc/ssh/sshd_config中的Port修改为你想要的端口号

二、重启ssh服务

#重启ssh
service sshd restart 或者 systemctl restart sshd


作者:队长不在家
舞台上有你,就演好角色; 舞台上没你,就静静地做观众;
微信扫一扫
返回列表
上一篇:
下一篇:

发表评论中国互联网举报中心

快捷回复:

    评论列表 (暂无评论,共192人参与)参与讨论

    还没有评论,来说两句吧...