Secure file transfer thru scp in Mac and Linux


If you do not have SFTP, you might wan to consider using SCP for secure file transfer. SCP (means secure copy) means secure file transfer thru secure shell (SSH) channel. Thru ssh channel, data packet will be transfer in encrypted form and this will secure your file transfer process.

Below is the scp example for secure file transfer under Mac and Linux:-

Advertisements

SCP Command example:-

$ scp -P port_no /from/location/filename.tar.gz /to/location/filename.tar.gz

For example, now i wan to transfer abc.zip from my desktop to my server (IP: 88.88.88.88, ssh port: 22) under username ‘myremoteuser’:-

$ scp -P 22 /home/mydesktop/abc.zip myremoteuser@88.88.88.88:/home/myuser/abc.zip 

For Windows user, you may try out WinSCP for secure file transfer.




Share this with your friends:-

One Response to “Secure file transfer thru scp in Mac and Linux”

  1. Khalil says:

    amazing, this is really helped me alot,
    thanks man,

Leave a Reply