学校网站的建立,邯郸网站制作与建设,网站建设中 html5 源码,做推广哪个平台好文章目录 1. 修改sshd_config2. 设置root密码3. 重启SSH服务 1. 修改sshd_config
修改/etc/ssh/sshd_config文件#xff0c;找到 #Authentication#xff0c;将 PermitRootLogin 参数修改为 yes。如果 PermitRootLogin 参数被注释#xff0c;请去掉首行的注释符号#xff… 文章目录 1. 修改sshd_config2. 设置root密码3. 重启SSH服务 1. 修改sshd_config
修改/etc/ssh/sshd_config文件找到 #Authentication将 PermitRootLogin 参数修改为 yes。如果 PermitRootLogin 参数被注释请去掉首行的注释符号#。 修改为PermitRootLogin yes
sudo nano /etc/ssh/sshd_config2. 设置root密码
sudo passwd root3. 重启SSH服务
sudo service ssh restart最后即可ssh远程连接 ~