macos - 用ssh来互连ubuntu和mac os,ubuntu连mac可以,mac连ubuntu就是连不上,怎么办?
巴扎黑
巴扎黑 2017-04-22 08:55:25
0
6
474

后者总是出现这个:

ssh: connect to host 192.168.x.x port 22: Operation timed out
巴扎黑
巴扎黑

reply all(6)
洪涛

I guess it’s because Ubuntu has the firewall turned on but Mac doesn’t. Try turning off Ubuntu’s firewall

大家讲道理

I guess it’s not pretendingopenssh-server, the description is not detailed, it’s just a guess

左手右手慢动作

Please try to use the following similar commands to turn off functions such as firewalls (the example is the usage of RHEL, I don’t remember Ubuntu):
service iptables stop
setenforce 0

洪涛

You'd better check if ubuntu's ssh is installed first, use local telnet to port 22 or netstat -nat|grep 22

小葫芦

It’s best to confirm: sudo apt-get install sshGenerally, if you install it successfully, you can connect by default

Ty80

I encountered someone who needed to install openssh-server when I was installing 16 yesterday

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template