scp username@remote_host:/path/to/remote/file /path/to/local/destination Use code with caution. Copied to clipboard 💡 Examples scp user@192.168.1.50:/var/www/archive.zip ~/Downloads/ Use code with caution. Copied to clipboard Download an entire folder: (requires the -r flag) scp -r user@192.168.1.50:/var/www/images ~/Downloads/ Use code with caution. Copied to clipboard If your SSH server uses a custom port: (use capital -P )

: Set protocol to SFTP , enter your host, username, password, and port (usually 22).

You must run this command in the terminal on your , not inside the remote SSH session. 📌 Command Syntax

(Windows): Choose SFTP as the file protocol and enter your credentials.