scp user@host:/path/file.txt .

Category: SSH & Remote

scp user@host:/path/file.txt .

Copy a file from remote host to local directory

Downloads a file from a remote server to the current local directory (the . means 'here').
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.