ssh允许root登录

来源:互联网 发布:iframe 端口不同 跨域 编辑:程序博客网 时间:2024/06/04 19:50

修改ssh配置

前提是已经有root账户
sudo vim /etc/ssh/sshd_config

 26 # Authentication: 27 LoginGraceTime 120 28 #PermitRootLogin without-password #注释掉 29 PermitRootLogin yes#添加允许root登录 30 StrictModes yes

重启ssh服务

sudo service ssh restart

ssh stop/waitingssh start/running, process 4202

就可以使用root用户,ssh登录,或着winSCP登录root传送文件了

原创粉丝点击