02-SSH (22)

** #SSH protocol ( Secure shell protocol ) [ port : 22 ]**


SSH has 2 main authentication ways:

1. Username & Password Authentication.
2. Key Based Authentication.

using: ~# nc <ip address> <ssh port> might give both SSH and linux versions.

a simple SSH login might give us the banner ( title ) for the purpose of the service


** #MSF modules :**

To search:

#nmap_scripts -:

ssh2-enum-algos

ssh-hostkey --script-args ssh_hostkey=full

ssh-auth-methods --script-args ssh.user=<username>

what is more interesting is if there is no auth methods for

that user then we can actually login through ssh directly!


Vulnerabilites & Exploitations:

MSF Module:

Then and run.

set SPAWN_PTY true