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