Home  >  Article  >  Operation and Maintenance  >  Unable to connect to linux server remotely

Unable to connect to linux server remotely

王林
王林Original
2020-01-10 15:37:513401browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn