Home > Article > Operation and Maintenance > Unable to connect to linux server remotely
1. The server ssh service is not installed or is closed
Execute the command on the server to check the ssh status
ps -e |grep ssh
If it is not installed, execute it
sudo apt install openssh-server
Then re-execute the above command to check the installation status.
(Free video tutorial recommendation: linux video tutorial)
2. The server firewall status is not closed
The server executes the command to view the firewall status
service iptables status
If it is not closed, execute the code to close the firewall
service iptables stop
cmd and execute the following command test (in which the IP address is changed to the server address):
ssh root@172.1.1.1
Related article tutorial recommendations:linuxtutorial
The above is the detailed content of Unable to connect to linux server remotely. For more information, please follow other related articles on the PHP Chinese website!