Quick ssh keys During a pentest.
Attacker
# ssh-keygen -t rsa
Copy the PUBLIC KEY into the authorized_keys file on the victim.
ssh user@host -i public_key.pub
Victim
# cd ./ssh/
if the file 'authorized_keys' does NOT exist create it.
# touch authorized_keys
Attacker
# ssh-keygen -t rsa
Copy the PUBLIC KEY into the authorized_keys file on the victim.
ssh user@host -i public_key.pub
Victim
# cd ./ssh/
if the file 'authorized_keys' does NOT exist create it.
# touch authorized_keys
No comments:
Post a Comment