CentOS SSH Command

Source: Internet
Author: User

Use SSH to remotely log in to the CentOS system
Common formats are: SSH [[email protected]]hostname [Port]
Detailed commands can: Man SSH

As an example:
Do not specify User:
SSH 192.168.0.1
Specify User:
SSH [email protected]
Specify port: (22 is the default port for SSH)
SSH 192.168.0.1 22
SSH [email protected] 22

Of course we can change the port number by modifying the SSH configuration file,/etc/ssh/sshd_config
To avoid being scanned by malicious ports
Vim/etc/ssh/sshd_config
Found it
#Port 22
Remove comments
Change the port number 22 to a 5-digit number, such as 54321, not greater than 65535.
Port 54321
: Wq

Restart the SSH service
Service SSH Restart

SSH [email protected] 54321
We can land.

CentOS SSH Command

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.