apt update
apt install ssh
修改/etc/ssh/sshd_config中的配置,包括两点,第一,设置PermitRootLogin yes(记得删除前面的#),第二设置PasswordAuthentication yes(删除前面的#)
设置root密码 passwd root
/etc/init.d/ssh restart
至此成功开始root ssh。
验证方法,ssh root@ip:port(ip和port要自行填写,port默认22)
apt update
apt install ssh
修改/etc/ssh/sshd_config中的配置,包括两点,第一,设置PermitRootLogin yes(记得删除前面的#),第二设置PasswordAuthentication yes(删除前面的#)
设置root密码 passwd root
/etc/init.d/ssh restart
至此成功开始root ssh。
验证方法,ssh root@ip:port(ip和port要自行填写,port默认22)
1277

被折叠的 条评论
为什么被折叠?
