
win10家庭版能使用ssh吗,用win自带ssh连不上ubuntu,ping也ping不通
#ps -e|grep ssh
运行后如果有结果显示就说明ssh服务开启,如果没有结果,运行:
service sshd start
或者service ssh start
如果系统提示unreconize service
#apt install openssh-client
#apt install openssh-server
安装以上deb包以后#service sshd/ssh start
启动服务以后远程未必能直接ssh ,需要修改sshd_config文件把默认passwordauthentication设置为yes(因为win10:ubuntu默认no)
以下为配置步骤,请参考:
刚解决此问题,纠结了一段时间,现给你解答:
#cd /etc/ssh/
#vim sshd_config
修改如下:
#PasswordAuthentication no
改为:
PasswordAuthentication yes
(注意前面的 # 去掉)
【保存】文件后记得:service ssh restart
(只有重启服务才能让配置生效嘛,hahahia)
课后问题总结:
遇到此问题由于对ssh配置不熟悉,一度以为是:防火墙、服务企停、ssh/sshd安装包等等bug导致,经历一系列lab后,把/etc/ssh/sshd_config文件与正常的ubuntu配置文件比对后发现问题根源(原来就是win10:ubuntu 虚机默认密码认证是【关闭】状态),通过开启此配置解决问题。
2019-07-03
ping不通说明是网络问题
首先把网络搞通
然后在ubuntu上安装ssh服务 默认会加入开机启动项
希望可以帮助你 请采纳 谢谢