It depends on what your local OS is.
If your local OS is Unix-like, then try:
scp username@remoteHost:/remote/dir/file.txt /local/dir/
If your local OS is Windows ,then you should use pscp.exe
utility. For example, below command will download file.txt from remote to D:
disk of local machine.
pscp.exe username@remoteHost:/remote/dir/file.txt d:\
It seems your Local OS is Unix, so try the former one.
For those who don’t know what pscp.exe
is and don’t know where it is, you can always go to putty
official website to download it. And then open a CMD prompt, go to the pscp.exe directory where you put it. Then execute the command as provided above
Related Posts:
- scp with port number specified
- scp with port number specified
- Copying a local file from Windows to a remote server using scp
- Using putty to scp from windows to Linux
- How does `scp` differ from `rsync`?
- scp files from local to remote machine error: no such file or directory
- How to scp in Python?
- Is there a WinSCP equivalent for Linux?
- Getting stty: standard input: Inappropriate ioctl for device when using scp through an ssh tunnel
- How do I do Multihop SCP transfers between machines?
- scp without known_hosts check
- How to make scp copy hidden files?
- ssh : Permission denied (publickey,gssapi-with-mic)
- ssh connect Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
- Git: How to solve Permission denied (publickey) error when using Git?
- Could not open a connection to your authentication agent
- How do I copy a folder from remote to local using scp?
- Could not open a connection to your authentication agent
- ssh remote host identification has changed
- How to establish ssh key pair when “Host key verification failed”
- scp or sftp copy multiple files with single command
- Putty: Getting Server refused our key Error
- AWS – Disconnected : No supported authentication methods available (server sent :publickey)
- scp or sftp copy multiple files with single command
- ssh: The authenticity of host ‘hostname’ can’t be established
- Perform commands over ssh with Python
- How to set ssh timeout?
- ssh “permissions are too open” error
- ssh: The authenticity of host ‘hostname’ can’t be established
- mysql_config not found when installing mysqldb python interface
- SSH -X “Warning: untrusted X11 forwarding setup failed: xauth key data not generated”
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- Pseudo-terminal will not be allocated because stdin is not a terminal
- X11 forwarding request failed on channel 0
- Permission denied (publickey,keyboard-interactive)
- How to deal with “Pseudo-terminal will not be allocated because stdin is not a terminal.”
- What is actually in known_hosts?
- SSH library for Java
- mysql_config not found when installing mysqldb python interface
- mysql_config not found when installing mysqldb python interface
- Pseudo-terminal will not be allocated because stdin is not a terminal
- ‘heroku’ does not appear to be a git repository
- How to download a file from server using SSH?
- How to pass password to scp?
- scp gives “not a regular file”
- How to solve “sign_and_send_pubkey: signing failed: agent refused operation”?
- How to fix request failed on channel 0
- Forward X11 failed: Network error: Connection refused
- scp from Linux to Windows
- connect to host localhost port 22: Connection refused
- Transfer files to/from session I’m logged in with PuTTY
- channel 3: open failed: connect failed: Connection refused
- Getting “socket.error: [Errno 61] Connection refused” python paramiko
- PuTTY PSCP error “Local to local copy not supported” when username contains a slash
- How to specify the private SSH-key to use when executing shell command on Git?
- Starting ssh-agent on Windows 10 fails: “unable to start ssh-agent service, error :1058”
- Git error: “Host Key Verification Failed” when connecting to remote repository
- Convert PEM to PPK file format
- X Error of failed request: BadValue (integer parameter out of range for operation)
- Copying files using rsync from remote server to local machine
- Could not create work tree dir ‘example.com’.: Permission denied
- How to read iPhone files without jailbreaking?
- SSH to Vagrant box in Windows?
- Specify an SSH key for git push for a given domain
- How to ssh from within a bash script?
- How to use Sublime over SSH
- key_load_public: invalid format
- Differences between SFTP and “FTP over SSH”
- Use qdel to delete all my jobs at once, not one at a time
- Paramiko’s SSHClient with SFTP
- EC2 ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
- SCP Permission denied (publickey). on EC2 only when using -r flag on directories
- Automating command/script execution using PuTTY
- Why does WordPress need my private ssh key to update?
- How can I use WP-CLI commands without –allow-root
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- Public and Private Keys are Incorrect for user
- How to disable XML-RPC from Linux command-line in a total way?
- Configure WordPress to connect to Mysql DB using SSH tunneling
- Failure to establish connection when provisioning via ansible-playbook server.yml
- WP-CLI alias: connect with ssh proxy
- Upgraded to php7.0, now ssh updates don’t work [closed]
- enable SFTP via SSH keys in wordpress
- WPTerm ssh connection not working [closed]
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?
- Unable to update WordPress or install plugins/themes
- After upgrade to php 7 plugin/them updates broke [closed]
- SSH Server with WordPress
- How to set intervals in cron jobs?
- Index.php using 100% CPU [closed]
- AWS Lightsail WordPress – connect to database on instance using mysqli
- WordPress Redirects to a cancelled domain, need to change it but can’t get to the admin portal
- How To Upload Existing WordPress Site To WordPress Multisite Using SSH
- Can I use WP-CLI from a remote computer?
- Public and Private keys incorrect for user
- SSH vs WordPress
- Configuring WordPress permissions for easy updates
- SSH git — How to pull a folder from repo, but not delete other directories & files on deployment server [closed]
- Force Jetpack to use og:url with http on an https website
- I can’t login to wordpress dashboard without SSH