How to copy file from ssh to local

In this article let’s discuss about How to copy file from ssh to local. Let’s go through the following methods without any delay.

Method 1:

scp username@remoteHost:/remote/dir/file.txt /local/dir/

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

scp ./file.txt remote_username@remote_ip:/remote/directory

Hope the above solution works.

Realted Posts : How to brew install eb cli