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 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s