首页 > Windows开发 > 详细

xshell登陆Win10 Linux子系统

时间:2018-11-06 12:54:36      阅读:210      评论:0      收藏:0      [点我收藏+]
原文:xshell登陆Win10 Linux子系统

版权声明:转载请注明出处 https://blog.csdn.net/anychenp/article/details/78922320

修改端口

cd /etc/ssh
#备份
sudo cp sshd_config sshd_config.bak
sudo vim sshd_config

修改sshd_config

Port 2233  #修改端口
ListenAddress 0.0.0.0  #打开本地监听
#StrictModes yes  #注释掉
PasswordAuthentication yes  #允许密码登陆

重启ssh

sudo service ssh restart

重新生成host key

sudo dpkg-reconfigure openssh-server

完成

问题:关了bash会断线

https://github.com/Microsoft/WSL/issues/612

xshell登陆Win10 Linux子系统

原文:https://www.cnblogs.com/lonelyxmas/p/9914380.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!