Local File and Folder Transferring to Remote Servers trough SSH (Hack Tip)

I have this use of clearing my pentest data after finishing a job . what I used to do is to upload all my pentest information in to a remote server trough FTP and clear the data in the local machine . but for the paste couple of months I started to use SSH for the file transfer , which is much easier than FTP.

to transfer a file to a remote server trough SSH 

scp dump.sql nuke@67.22.xx.xx:pentest

dump.sql -> the local machine transfer file

nuke@67.22.xx.xx -> auth user and remote server

pentest -> remote folder to upload

Uploading a entire folder to ssh is almost the same just need to use the -r

to transfer a file to a remote server trough SSH 

scp -r pentestdata nuke@67.22.xx.xx:pentest

pentestdata-> the local machine folder

nuke@67.22.xx.xx -> auth user and remote server

pentest -> remote folder to upload

guess this could be a useful tip for you too 🙂