linux 开启远程连接 配置 ssh文件

---编辑ssh配置文件
nano /etc/ssh/sshd_config
修改:
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
--ssh服务启动命令:
sudo /etc/init.d/ssh start |stop |restart
---设置ssh开机自启动:update-rc.d ssh enable

猜你喜欢

转载自blog.csdn.net/weixin_42599091/article/details/124747194