后者总是出现这个:
ssh: connect to host 192.168.x.x port 22: Operation timed out
我猜是因为ubuntu开了防火墙而mac没开,你试试把ubuntu的防火墙关了
我猜是没有装openssh-server,描述不详细,纯猜测
openssh-server
请尝试使用以下类似命来关闭防火墙之类的功能(示例是RHEL的用法,Ubuntu不记得了): service iptables stop setenforce 0
你最好先看下ubuntu的ssh装了没,本地telnet下22端口或netstat -nat|grep 22
netstat -nat|grep 22
最好是确认下:sudo apt-get install ssh一般情况下如果你安装成功地话默认是可以连接的
sudo apt-get install ssh
昨天装16的时候遇到过 要装openssh-server的
我猜是因为ubuntu开了防火墙而mac没开,你试试把ubuntu的防火墙关了
我猜是没有装
openssh-server
,描述不详细,纯猜测请尝试使用以下类似命来关闭防火墙之类的功能(示例是RHEL的用法,Ubuntu不记得了):
service iptables stop
setenforce 0
你最好先看下ubuntu的ssh装了没,本地telnet下22端口或
netstat -nat|grep 22
最好是确认下:
sudo apt-get install ssh
一般情况下如果你安装成功地话默认是可以连接的昨天装16的时候遇到过 要装openssh-server的