Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that ssh can't connect to linux server?

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

This article and you to understand how ssh can not connect to the linux server should be solved. There is a certain reference value, friends in need can refer to, hope to help you.

What if ssh can't connect to Linux?

Reason: blocked by the firewall, whether the parameters in the ssh service profile reject the connection, and so on.

Solution:

First, open SSH.

Log in to Linux as root user, open the terminal, and run: / etc/init.d/sshd restrat.

Second, turn off the firewall.

1. Run setup on the terminal.

2. Select firewall to enter.

3. Press the tab key to switch to the disablede item, then press the Spacebar to select, then press the tab key to switch to ok, and press the space bar to select the item.

4. Press the tab key to switch to quit, and press the space bar to select. Then log in to Linux using the client ssh.

Third, another way to turn off the firewall.

/ etc/init.d/iptables stop

Linux is a free-to-use and free-spread Unix-like operating system. It is a multi-user, multi-task, multi-threaded and multi-CPU operating system based on POSIX and UNIX. It runs major UNIX tools, applications, and network protocols.

The Linux operating system was born on October 5, 1991 (this is the first time it has been officially released). There are many different Linux versions of Linux, but they all use the Linux kernel. Linux can be installed in a variety of computer hardware devices, such as mobile phones, tablets, routers, video game consoles, desktops, mainframes and supercomputers.

The word Linux itself only refers to the Linux kernel, but in fact people have become accustomed to using Linux to describe the entire Linux kernel and use GNU to project operating systems for various tools and databases.

About how ssh can not connect to the linux server should be shared here, of course, not only the above and everyone's analysis, but the editor can ensure its accuracy is absolutely no problem. I hope that the above content can have a certain reference value for everyone, and can be put into practice. If you like this article, you might as well share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report