Simple ssh remote logon command instance

Source: Internet
Author: User
Ssh remote logon command simple instance ssh command is used to remotely log on to a Linux host. Common Format: ssh [-llogin_name] [-pport] [user @] hostname. For more details, refer to ssh-h. For example, if you do not specify the User: ssh192.168.0.11, specify the User: ssh-lro... ssh remote logon command simple instance ssh command is used to remotely log on to the Linux host. Common Format: ssh [-l login_name] [-p port] [user @] hostname. For more details, refer to ssh-h. For example, if you do not specify User: ssh 192.168.0.11 specify User: ssh-l root 192.168.0.11 ssh root@192.168.0.11 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 root@216.230.230.114 also modify the configuration file/etc/ssh/sshd_config, you can change the ssh login port and disable root login. Modify the port to prevent port scanning. Edit the configuration file: vim/etc/ssh/sshd_config find # Port 22, remove the comment, change it to a five-digit Port: Port 12333 find # PermitRootLogin yes, remove the comment, and modify it: permitRootLogin no restart sshd service: service sshd restart
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.