22 - SSH
Usage
# Connect via SSH using a password
ssh x7331@10.10.10.1
# Connect via SSH using a private key
chmod 400 id_rsa
ssh -i id_rsa x7331@10.10.10.1Inline Commands
# Inline command execution
ssh user1@10.10.10.10 -p 2222 'ls /home/user1/'File Transfer
# Local to remote (upload)
scp file1 user@172.16.10.10:/tmp/file1
# Remote to local (download)
scp user@172.16.10.10:/tmp/file1 ./file1
# Multiple files -> host must end with a directory, i.e., ':~' or ':/'
scp agent.exe proxy x7331@srv02:~
Key Generation
Enumeration
Attacks
Brute Force
Password Spray
Crack Private Keys
Key Type
Private Key File
Public Key File
PPK to PEM
Last updated