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)
- Could not open a connection to your authentication agent
- Could not open a connection to your authentication agent
- How to establish ssh key pair when “Host key verification failed”
- AWS – Disconnected : No supported authentication methods available (server sent :publickey)
- ssh: The authenticity of host ‘hostname’ can’t be established
- How to set ssh timeout?
- 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
- X11 forwarding request failed on channel 0
- 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 pass password to scp?
- scp gives “not a regular file”
- How to fix request failed on channel 0
- scp from Linux to Windows
- Transfer files to/from session I’m logged in with PuTTY
- Getting “socket.error: [Errno 61] Connection refused” python paramiko
- 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
- 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
- SSH to Vagrant box in Windows?
- 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?
- Public and Private Keys are Incorrect for user
- Configure WordPress to connect to Mysql DB using SSH tunneling
- Failure to establish connection when provisioning via ansible-playbook server.yml
- Upgraded to php7.0, now ssh updates don’t work [closed]
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?
- Unable to update WordPress or install plugins/themes
- SSH Server with WordPress
- AWS Lightsail WordPress – connect to database on instance using mysqli
- How To Upload Existing WordPress Site To WordPress Multisite Using SSH
- 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]
- Can scp copy directories recursively?
- How to automate SSH login with password?
- How do I tell Git for Windows where to find my private RSA key?
- Can I nohup/screen an already-started process?
- Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server
- How do diff over ssh?
- “Add correct host key in known_hosts” / multiple ssh host keys per hostname?
- How to reconnect to a disconnected ssh session
- SSH use only my password, Ignore my ssh key, don’t prompt me for a passphrase
- ssh-agent forwarding and sudo to another user
- How to check sshd log?
- What does “Warning: untrusted X11 forwarding setup failed: xauth key data not generated” mean when ssh’ing with -X?
- What’s the difference between authorized_keys and authorized_keys2?
- Keeping a linux process running after I logout
- Is my password compromised because I forgot to hit Enter after ssh username?
- ssh-keygen does not create RSA private key
- Why do consoles sometimes hang forever when SSH connection breaks?
- OpenSSH: Difference between internal-sftp and sftp-server
- How to check if an RSA public / private key pair match
- What significance does the user/host at the end of an SSH public key file hold?
- How can I automatically change directory on ssh login?
- How can I prevent the warning No xauth data; using fake authentication data for X11 forwarding?
- “POSSIBLE BREAK-IN ATTEMPT!” in /var/log/secure — what does this mean?
- SFTP logging: is there a way?
- Does getting disconnected from an SSH session kill your programs?
- Can you have more than one ~/.ssh/config file?
- SSH from A through B to C, using private key on B [closed]
- How can I edit the welcome message when ssh start?
- SSHFS mount that survives disconnect
- Temporarily ignore my `~/.ssh/known_hosts` file?
- How can I fully log all bash scripts actions?
- How can I run arbitrarily complex command using sudo over ssh?
- What is the benefit of not allocating a terminal in ssh?
- Why Block Port 22 Outbound?
- Ansible stuck on gathering facts
- SSH Allow Password For One User, Rest Only Allow Public Keys [duplicate]
- Why is SSH password authentication a security risk?
- Using wp-cli on remote with quoted commands