linux - xShell连接win10 的Ubuntu

查看:798
本文介绍了linux - xShell连接win10 的Ubuntu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

请问如何用xShell等连接工具连接本地Win10下的Ubuntu啊? 本地Win10下的Ubuntu查ip都查不到,openssh已经打开的。

解决方案

参考地址

1.安装shh

apt-get install openssh-server

如果是最新安装的16.04就会提示已经安装过了,无需再次安装。

2.备份及sshd配置文件

sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak

修改内容:

Port 23 # 端口改为23,22端口已被占用
ListenAddress 0.0.0.0 # 取消注释
#StrictModes yes # 注释
PasswordAuthentication yes # 允许密码登录

3.启动ssh

service ssh start

如果提示sshd error: could not load host key,则用下面的命令重新生成

sudo rm /etc/ssh/ssh*key
dpkg-reconfigure openssh-server

我试过可以用Xshell正常连接
版本:
windows10: 10.0.15063
ubuntu Ubuntu 16.04.2 LTS n l
linux内核 4.4.0-43-Microsoft

这篇关于linux - xShell连接win10 的Ubuntu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆