Unable to connect to linux server remotely

王林
Release: 2020-01-10 17:53:17
Original
3425 people have browsed it

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
Copy after login

If it is not installed, execute it

sudo apt install openssh-server
Copy after login

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
Copy after login

If it is not closed, execute the code to close the firewall

service iptables stop
Copy after login

cmd and execute the following command test (in which the IP address is changed to the server address):

ssh root@172.1.1.1
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!