SSH (22)
Inline Command Execution
Enumeration
Supported authentication methods.
Audit
Brute Force
PPK to PEM
Convert a Putty user key file (.ppk
) to an SSH .pem
file.
Private Keys
Key Types
SSH supports multiple key types, each with a default filename, thus, when trying to exfiltrate one don't just search for id_rsa
!
Key Type
Private Key File
Public Key File
RSA
~/.ssh/id_rsa
~/.ssh/id_rsa.pub
ECDSA
~/.ssh/id_ecdsa
~/.ssh/id_ecdsa.pub
ED25519
~/.ssh/id_ed25519
~/.ssh/id_ed25519.pub
DSA (old)
~/.ssh/id_dsa
~/.ssh/id_dsa.pub
ECDSA and ED25519 are newer and generally faster/smaller than RSA.
ED25519 is currently the recommended default for many systems (
ssh-keygen
defaults to it now).RSA is still widely supported, but 4096-bit keys are preferred now due to security standards.
Last updated
Was this helpful?