SSH
Pentesting SSH - TCP Port 22
Last updated
Was this helpful?
Pentesting SSH - TCP Port 22
Last updated
Was this helpful?
SSH or Secure Shell or Secure Socket Shell, is a network protocol that gives users a secure way to access a computer over an unsecured network.
SHH protocol operate by default on TCP port 22
We can use nmap to enumerate informations about the running SSH server
In some versions of OpenSSH you can make a timing attack to enumerate users. You can use a metasploit module in order to exploit this:
When bruteforcing accounts, you may lock accounts
It's possible to backdoor an SSH public key using the command=
argument. The backdoor will execute whenever the user logs in using this key.
If the target host opens port 80 or 443, you can generate then use it with your tool.
Some private keys require a password or passphrase for operation, so we may attempt to the passphrase .