设置服务器登陆密码

centos7

拿到root权限后,修改SSH配置文件/etc/ssh/sshd_config

1
2
3
vim /etc/ssh/sshd_config
PasswordAuthentication no 改成 yes
PermitRootLogin no 改成 yes

设置密码,输入两次,输入不提示任何字符

1
passwd

重启SSH服务,最后通过账号为root,密码为自己刚设置的通过第三方ssh登陆连接

1
service sshd restart

Debian 9和10


Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×