当前位置首页 > Ubuntu知识

xshell连接windows10子系统ubuntu

阅读次数:275 次  来源:admin  发布时间:

修改端口

cd /etc/ssh

#备份

udo cp sshd_config sshd_config.bak

udo vim sshd_config

修改sshd_config

Port 2233 #修改端口

ListenAddress 0.0.0.0 #打开本地监听

#StrictModes yes #注释掉

PasswordAuthentication yes #允许密码登陆

重启ssh

udo service ssh restart

重新生成host key

udo dpkg-reconfigure openssh-server

完成

问题:关了bash会断线

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

原文链接:https://blog.csdn.net/anychenp/article/details/78922320

上一篇:Apache和IIS共享80端口,支持多域名
下一篇:spark安装centos7