SSH (22)

Secure Shell.

Protocol Information

SSH (Secure Shell) is a remote administration protocol that offers encryption and is the successor to Telnet. It is generally used for remote access to servers and systems. SSH authentication can be configured in two main ways: user/password, or with key.

Port

22 TCP

SSH

Config File

  • Linux: /etc/ssh/sshd_config

  • Windows: %ProgramData%\ssh\sshd_config

Interact

If anonymous access is enabled, it's possible log in with username “Anonymous” and password “”.

ssh <USER>@<IP>
ssh -i <KEY> <USER>@<IP>

SSH Key

ssh-keygen

Move the public key in ~/.ssh/authorized_keys target machine.

Upload Key on Server SSH

ssh-keygen -f ~/.ssh/id_rsa -N ""
ssh-copy-id -i ~/.ssh/id_rsa.pub <USER>@<IP>

Last updated

Was this helpful?