Open links in new tab
  1. scp files from multiple directories on local to multiple directories on ...

    You can use a for loop wrapper if you need to copy multiple source files to different directories on multiple hosts. you could do the same with plain old scp but you'd need an outer loop for the hosts as …

  2. scp with port number specified - Stack Overflow

    Dec 2, 2025 · The lowercase p switch is used with scp for the preservation of times and modes. Here is an excerpt from scp's man page with all of the details concerning the two switches, as well as an …

  3. Use scp to transfer a file from local directory X to remote directory Y ...

    To copy a file from the remote machine to the local one, use scp -P 2222 username@domain:dir/file.ext localdir (assuming that file.ext is in ~/dir on the remote computer, as in your example). If you run scp …

  4. Copying a local file from Windows to a remote server using scp

    Using the stock 'scp' from a recent Windows Server 2022 version I was able to use the command from this answer above, but with using a colon in the drive specifier, as the first path segment on the …

  5. Transfer files using scp: permission denied - Unix & Linux Stack Exchange

    I try to transfer files from remote computer using ssh to my computer : scp My_file.txt user_id@server:/Home This should put My_file.txt in the home folder on my own computer, right? I …

  6. How do I copy a folder from remote to local using scp? [closed]

    How do I copy a folder from remote to local host using scp? I use ssh to log in to my server. Then, I would like to copy the remote folder foo to local /home/user/Desktop. How do I achieve this?

  7. How to copy all files from a directory to a remote directory using scp ...

    Sep 30, 2015 · From man scp: ... So if you have sub-directories inside local_dir, the last example will only transfer files, but if you set the -r option, it will transfer files and directories.

  8. Error when trying to SCP from Linux remote to Windows 11

    Nov 17, 2024 · I am currently trying to use scp to transfer files from a Linux-based remote server to my local machine from within a Windows Powershell terminal. My machine is installed with Windows 11, …

  9. How can I best copy large numbers of small files over scp?

    I have a directory that's got several gigabytes and several thousand small files. I want to copy it over the network with scp more than once. CPU time on the source and destination machines is chea...

  10. ssh - scp to remote hosts fails with "client_loop: send disconnect ...

    Aug 29, 2022 · Failure case: ... What I've tried: use the original scp protocol instead of sftp with option -O check that sftp-server is available and configured in the target sshd configuration reduce the MTU …