ssh遠程登錄win子系統linux

安裝ssh

sudo apt install ssh

配置ssh

sudo vim /etc/ssh/sshd_config

修改

#Port 22    #註釋
Port 22    #添加這行
#StrictModes yes # 註釋
PasswordAuthentication yes # 允許密碼登錄

重啓ssh服務

sudo service ssh restart

錯誤

在這裏插入代碼片

執行

dpkg-reconfigure openssh-server

重新啓動即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章