經過 SSH 鏈接 win10 linux 子系統

apt-get remove openssh-servervim

apt-get install openssh-serverssh

vim /etc/ssh/sshd_configspa

  • PasswordAuthentication yes容許密碼登陸

service ssh --full-restart.net

 

注:1,登陸 Linux 子系統使用默認帳號,默認的帳號不是rootrest

      2,Linux 子系統跟本機 IP 同樣。code

參考:https://blog.csdn.net/l_d_x/article/details/9497984server

 

啓用 root 設置密碼並設置容許 ssh 登陸http://www.javashuo.com/article/p-ahbxhbbv-dx.htmlblog

sudo systemctl restart ssh 可用 service ssh restart 代替rem

相關文章
相關標籤/搜索