Remote login of Linux-ssh

Source: Internet
Author: User

SSH telnet command Simple instance

The SSH command is used to telnet to the Linux host.

Common format: SSH [-l login_name] [-P port] [[Email Protected]]hostname

More details can be viewed with ssh-h.

Example

Do not specify User:

SSH 192.168.0.11

Specify User:

ssh-l root 192.168.0.11 ssh [email protected]

If you have modified the SSH login port, you can:

Ssh-p 12333 192.168.0.11 ssh-l root-p 12333 216.230.230.114 ssh-p 12333 [email protected]

In addition to modify the configuration file/etc/ssh/sshd_config, you can change SSH login port and disable root login. The port can be changed to prevent the port from being scanned.

To edit a configuration file:

Vim/etc/ssh/sshd_config

Locate #port 22, remove the comment, and modify it to a five-bit port:

Port 12333

Find #permitrootlogin Yes, remove the comment, and modify it to:

Permitrootlogin No

To restart the SSHD service:

Service sshd Restart


This article is from the "Mr_computer" blog, make sure to keep this source http://caochun.blog.51cto.com/4497308/1566871

Remote login of Linux-ssh

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.