How to download file with SSH using SCP

Posted on: August 5th, 2022
By: Tadeo Martinez

To clarify, you do not need to be connected to the application through SSH. Just be in the folder where you want the files to be downloaded.

scp -P 22 username@hostname:public_html/filename.txt .
  • *Yes, the “P” needs to be uppercase.
  • You will be prompted for the SSH/FTP password after running the command above.

The space with the dot is needed at the end. In the terminal, the dot represents the current folder that you are in.

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published. Required fields are marked *