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 view SSH end base and modify port in Linux system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article "how to check the SSH end base and modify the port in the Linux system" is not quite understood by most people except programmers. Today, in order to make you better understand "how to view the SSH end base and modify the port in the Linux system", the editor summarizes the following, which has a certain reference value, the detailed steps are clear, and the details are handled properly. I hope you can get something through this article. Now let's take a look at the details.

1. View the SSH service status information systemctl status sshd.service. Through the status, you can see the Active status, whether it is running, how long it has been running, etc., as well as the recent link information.

2. View the port sudo netstat-atlunp currently occupied by SSH | grep sshd

3. Check the configuration file of SSH and enter the directory of SSH

Cd / etc/ssh Open configuration File

Vi ssh_config

4. Modify the SSH port, modify the ssh_config file, and specify the port as another port.

Port= restart the ssh service on the port you want to specify

Systemctl restart ssh.service what is Linux system Linux is a free to use and freely spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

Thank you for your reading. I hope you have a certain understanding of the key issue of "how to view the SSH end base and modify the port in the Linux system". The specific usage still needs to be understood by everyone through hands-on experiments. Go and try it. If you want to read more articles about related knowledge points, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report