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

Linux change SSH Telnet Port tutorial

2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Introduction to SSH: shorter than secure Shell,SSH (developed by SSH Communications Security) is a security protocol for remote login. Using the SSH client, users can connect to the server to transfer information in a more secure manner than other methods, such as telnet. The image to the right is a SSH session, which uses a command-line interface that shows how it looks. SSH defaults to port 22.

To improve the security of the server, you should change the SSH login port on the server instead of using the default port 22. How to change the SSH Telnet port in Linux.

1. Edit the sshd_config file nano / etc/ssh/sshd_config

Search for line # Port 22, remove the first # character, and replace it with the port you want to use, for example, 2404. Make sure that there are no running services on this port 2404.

two。 Restart the sshd service service sshd restart3. [option] if you are using a firewall like iptables, you need to open port 2404. Service iptables stopiptables-An INPUT-m state-state NEW-m tcp-p tcp-dport 2404-j ACCEPTservice iptables saveservice iptables start

The original text is from: https://www.linuxprobe.com/linux-ssh-2.html

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