New answers tagged

0

Since this question is not that old and no one else referred to this solution I think it is appropriate since it pushes the bandwidth to the max limit (10MiB/s in my case) unlike scp that is at arount 250kb/s so that answers your question. Actually the same 250kb/s with rsync - at least with the port specifier rclone -Avvp cap_* -e "ssh -p 1087 -i id_rsa" ...


1

You have a typo: "$(final_path)" should be "$final_path" (or "${final_path}" if you like curly braces). With "$(final_path)", the shell would see final_path as a command to run in a command substitution (a substitution of a command's output into a string; you use this with date earlier). You would the expect to get an error on the form sh: final_path: ...


2

Try this: scp -T user@172.100.100.100:"/home/aerokube/selenoid/browsers.json /home/aerokube/selenoid/run.sh" . In some cases -T might not work, so try with and without it.


2

You can do this: scp 'user@172.100.100.100:/home/aerokube/selenoid/{browsers.json,run.sh}' . You need the quotes so that expansion takes place on the remote side. Without it, it will work, but you might have to enter the credentials twice.


0

Easy fix. Make sure YOU are root. SCP to the remote and it will ask you for that machines root password. Just had this problem that was the solution. You root them root.


0

The following would give the full path resolving the symlink. which [symlink] | xargs realpath


1

I think your interpretation is correct. It was probably an undocumented feature, removed from the undocumented api (see the web archive of the protocol). One workaround is for you to create a symbolic link in the backup directory before the copy. ln -s . folder2


0

You can do this by editing your ssh configuration to include a proxy. scp uses ssh for remote connections so just editing the ssh config should work. Use your "intermediate server" as the proxy. Add something like this to your ~/.ssh/config file: Host target.machine User targetuser HostName target.machine ProxyCommand ssh proxyuser@...


0

With modern versions of ssh this is very easy using the concept of a ProxyJump at least if you have keys set up. Let us call the 3 machines L, I, and R (for local, intermediate, and remote). Assume to start with that the usernames are all the same. The command required is then scp -oProxyJump=I R:remote_file localfile If the usernames are different then ...


Top 50 recent answers are included