SSH

Interactive Session

~C
  • If you get a commandline disabled error, you need to change the ssh config file:
sudo vi /etc/ssh/ssh_config
  • Add this line
EnableEscaleCommandline yes

Port forwarding

-L 8081:1270.0.0.1:8080

Generate RSA keygen

ssh-keygen -t rsa -b 2048

Login with RSA key

ssh -i ~/.ssh/id_rsa james@10.129.252.176

Nmap SSH brute force

sudo nmap -sV --script=ssh-brute -p22 $IP