Ubuntu管理员修改密码和在xshell登录

一. Ubuntu开启22端口

  sudo apt-get install openssh-server  下载ssh

  systemctl ssh start      开启

二. Ubuntu初始化root密码

  sudo passwd root

三. Ubuntu在xshell上登录root

  vi /etc/ssh/sshd_config 注释掉 PermitRootLogin prohabit-password

  添加 PermitRootLogin yes

  重启 /etc/init.d/ssh restart

  

  

猜你喜欢

转载自www.cnblogs.com/q767498226/p/11353953.html
今日推荐