Ubuntu 14.04 为 root 帐号开启 SSH 登录
2015-05-14 16:56
681 查看
1. 修改 root 密码
2. 以其他账户登录,通过 sudo nano 修改 /etc/ssh/sshd_config :
3. 注释掉 #PermitRootLogin without-password,添加 PermitRootLogin yes
4. 重启 ssh 服务
sudo passwd root
2. 以其他账户登录,通过 sudo nano 修改 /etc/ssh/sshd_config :
xxx@ubuntu14:~$ su - root Password: root@ubuntu14:~# vi /etc/ssh/sshd_config
3. 注释掉 #PermitRootLogin without-password,添加 PermitRootLogin yes
# Authentication: LoginGraceTime 120 #PermitRootLogin without-password PermitRootLogin yes StrictModes yes
4. 重启 ssh 服务
root@ubuntu14:~# sudo service ssh restart ssh stop/waiting ssh start/running, process 1499 root@ubuntu14:~# Beyond Compare 下的登陆口令:sftp://root:123456@192.168.198.132//opt
相关文章推荐
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录【转载的哟】
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录 启动的时候需要改的启动项类比centos
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Ubuntu 14.04 为root帐号开启SSH登录
- Ubuntu 14.04 为 root 帐号开启 SSH 登录