File location if target path not specified with scp command

When you use user@server without a ‘:’ character, scp interprets user@server as the file name on the local machine to which you would like to copy your file. So, you should find a file (or in this case a directory) called user@server in the directory from which you issued the scp -r local_folder user@server command.

scp files from local to remote machine error: no such file or directory

Looks like you are trying to copy to a local machine with that command. An example scp looks more like the command below: Copy the file “foobar.txt” from the local host to a remote host $ scp foobar.txt your_username@remotehost.edu:/some/remote/directory scp “the_file” your_username@the_remote_host:the/path/to/the/directory to send a directory: Copy the directory “foo” from the local host to … Read more

Why is copying a directory with Ansible so slow?

TLDR: use synchronize instead of copy. Here’s the copy command I’m using: – copy: src=testdata dest=/tmp/testdata/ As a guess, I assume the sync operations are slow. The files module documentation implies this too: The “copy” module recursively copy facility does not scale to lots (>hundreds) of files. For alternative, see synchronize module, which is a … Read more

How to scp with a second remote host

I don’t know of any way to copy the file directly in one single command, but if you can concede to running an SSH instance in the background to just keep a port forwarding tunnel open, then you could copy the file in one command. Like this: # First, open the tunnel ssh -L 1234:remote2:22 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)