后者总是出现这个:
ssh: connect to host 192.168.x.x port 22: Operation timed out
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
openssh-server
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
netstat -nat|grep 22
It’s best to confirm: sudo apt-get install sshGenerally, if you install it successfully, you can connect by default
sudo apt-get install ssh
I encountered someone who needed to install openssh-server when I was installing 16 yesterday
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 pretending
openssh-server
, the description is not detailed, it’s just a guessPlease 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 ssh
Generally, if you install it successfully, you can connect by defaultI encountered someone who needed to install openssh-server when I was installing 16 yesterday