Tag Info

New answers tagged

1

L is not able to connect to B, but is B able to connect to L? You didn't say, but I will assume no. If A is your only way to communicate between B and L then you will definitely have to log in to A at some point. And also, the data will flow through A one way or another (which might be important if A is on a slow connection). You can establish an SSH ...


3

First step is to generate a private-public key pair on the machine you copy from: ssh-keygen You can go with the defaults, and make sure you don't provide a password for usage. This can take a bit of time. Second step, after the key generation has finished, is to copy the public key to the server using: ssh-copy-id username@server with the appropriate ...


0

start this on laptop: ssh machine1 -L 2222:machine2:22 where machine2 is the address of machine2 as seen from machine1 then in another shell on laptop ssh 127.0.0.1 -p 2222 or scp -P 2222 127.0.0.1:filename etc... note: scp uses capital P , ssh uses small p


1

If you are logged into the local machine, you would use scp like this: scp /home/username/some.xml root@remote.machine.ip.address:/path/to/directory/ If you are logged into the remote machine (as in the OP), use scp like this: scp username@local.machine.ip.address:/home/username/some.xml /path/to/directory Substitute the IP addresses as directed in the ...


2

Firstly you will have to use SCP, there is no way to just use cp to copy files over the network. The scp command should look like the following from your example, note that the directory structure will need to exist on the server receiving the files side; scp /home/username/some.xml root@xxx.xxx.xxx.xxx:/path/to/directory/ If you haven't already then you ...


0

If you set up a control file, you can reuse the existing connection authentication. From man ssh_config: ControlMaster Enables the sharing of multiple sessions over a single network connection. When set to “yes”, ssh(1) will listen for connections on a control socket specified using the ControlPath argument. Additional ...


1

As pointed out in this Ask Ubuntu answer, you may use zssh instead of ssh. When using zssh, you'll be able to switch to file transfer mode using Ctrl + @. This should allow you to transfer files back and forth between the local and remote ends of your active connection. Another trick pointed out in that answer is to send ssh to the background while you call ...


0

Both the servers needs to have same ssh port. If your port on one server is 22 and other one is say 44 then scp will not work.


0

With rcp, and scp use the -r option to recursively copy a directory and all it's contents (including other directories). With cp use -R. scp -r programming myName@orca.st.usm.edu: Just worked fine for me.


2

scp itself has no such feature. With GNU parallel you can use the sem command (from semaphore) to arbitrarily limit concurrent processes: sem --id scp -j 50 scp ... For all processes started with the same --id, this applies a limit of 50 concurrent instances. An attempt to start a 51st process will wait (indefinitely) until one of the other processes ...



Top 50 recent answers are included