9

使用putty等ssh客户端工具连接wsl

 4 years ago
source link: https://www.80shihua.com/archives/2723
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用putty等ssh客户端工具连接wsl

正常情况下我们会使用windows terminal 来连接wsl或者我们直接使用ubuntu应用启动图标来连接,那么有没有其它的方式来连接呢,毕竟是linux系统,它是支持ssh连接的。

答案是肯定的,我们可以通过设置ssh配置来连接。

vi /etc/ssh/sshd_config 修改ssh配置文件

PermitRootLogin yes PasswordAuthentication yes

重启ssh服务器

service ssh restart

最后,使用127.0.0.1这个ip就可以访问windows sub linux 系统了。


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK