Create a free Team What is Teams? Learn more. Asked 9 years, 8 months ago. Active 1 year, 3 months ago. Viewed k times. Improve this question. Provide more information such as the operating system, ssh config file, etc.
And what are these three lines that are printed? In the normal case, when you run scp file server: assuming "server" is a valid hostname , the file is copied to your account directory. Can you provide the output when you run "scp -v file server:". You might try scp to a different location on the server, then a cp or mv after ssh — Jesse W.
Add a comment. Active Oldest Votes. This is illustrated by the use of tar and ssh to copy a directory structure preserving ownership and creation times with the following commands: tar czf -. Improve this answer. Is it possible to detect scp within. So that you can check and only print output when the shell is not an scp one? The user also needs to be privilege level If the user is not privilege level 15, the ASA will just close the connection after authentication with no error message indicating a privilege issue.
Also, just because your user can type enable and enter a password doesn't mean they're priv I basically removed "zsh" from my. After removing it, scp works again. Where can the problem lie? Improve this question. Do you have an anti-virus on your or the remote system? Is this from Cygwin or from the Windows bash? I've had issues with scp from Windows' bash , but sftp seems to work reliably. I'm not sure about the antivirus, but there is a firewall. Other staff can do scp but on my PC something wrong.
We all have actually same rights. Kusalananda it's from Cygwin — khashashin. I'm scp'ing a file from local to remote, What does mean scp'ing socket or pipe? Show 1 more comment. Active Oldest Votes. One of these reasons seem to be likely: You have something in your. Improve this answer. Kenster Kenster 2, 2 2 gold badges 11 11 silver badges 18 18 bronze badges.
Node1 and node2 are identical scp -r -i abc. Dylan Slabbinck 1 1 gold badge 15 15 silver badges 27 27 bronze badges. Dave Dave 1 1 gold badge 4 4 silver badges 12 12 bronze badges. You need to be able to login directly to node2, since scp relays via your local system. Otherwise you have to execute scp on node1. And also have the secret key stored there too. Make sure SSH from the local node to node2 works, and don't put an asterisk in the path on the node2 target side also, in some cases you'd need to quote the asterisk or other wildcards, but here it's probably fine as is - run the command with echo" in front of it so see if the shell is expanding your " " when you didn't expect it.
I'd probably use -rpv instead of just -r. None which does not have the same requirements. But what you can do is this: you use ssh to login to node1, then from there you login to node2 and setup a ssh tunnel forwarding node2's ssh server to a local port on node1. How to setup such a tunnel is described in the manual pages. Then you can use scp on your local system and copy from user1 node1 to user2 node1 by specifying the port you setup the tunnel to, so that your transfer is actually tunneled to node2.
Show 2 more comments. Send a file from my Desktop to my home folder on a remote server:. Python Javascript Linux Cheat sheet Contact. This is illustrated by the use of tar and ssh to copy a directory structure preserving ownership and creation times with the following commands: tar czf -.
Edit: Are you positive you are entering in a valid path in the scp command?
0コメント