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
Linux ssh telnet command