1
vote
2answers
67 views

How do I iterate bash arrays and make an SCP command efficiently?

I need to scp the files from machineB and machineC to machineA. I am running my below shell script from machineA. I have setup the ssh keys properly. If the files are not there in machineB, then it ...
-3
votes
2answers
128 views

Create a public key to allow scp server to server

My scenario is this, I am trying to SCP from server1 to server2 and and I need to create a public_key on server1 to allow server2 access to it. How do I do this?
0
votes
1answer
338 views

Cygwin Scp or Rsync permissions

Why is it that whenever I Scp or Rsync files from my Windows machine using cygwin to my Ubuntu server. The copied files will all have no permissions. Rsync doesn't even work because it cannot copy ...
0
votes
1answer
454 views

Nested hosts with scp?

I need a way of copying a file through nested servers, as in localhost$ ssh user@host1 host1$ ssh host2 where host2 is on an off-site intranet and not directly accessible. Is there a way of using ...
0
votes
2answers
4k views

transfer file from unix to windows? [closed]

i want to transfer file from unix server to windows 2003 server i download copssh on windows 2003 and openssh is already installed in unix ... i execute the following command :- scp -r /file_in_unix/ ...
4
votes
5answers
1k views

Skip over intermediate server via SSH

I just got hired to work in a lab with a big 'ol linux cluster. I'm a mac/windows guy, so I'm still trying to figure out how to navigate around using a 'nix command line. So far I haven't run into any ...
1
vote
5answers
2k views

file permission is not correct while copying files with SCP

we are trying to copy files from one server to another but the permissions of copied files are not correct. I have tried following solution but its not working. ...
4
votes
1answer
636 views

How can I create a Single-purpose keys (ssh) for use with scp?

I'm trying to setup a Single-purpose key for copying data to a remote server (using scp), but I'm not sure what the command="" on the key should look like in this case. Any ideas? Thanks!
2
votes
5answers
1k views

How to copy /etc/hosts to all my machines?

import os, sys, time servers = ['dev','admin','db1'] for s in servers: cmd = 'scp /etc/hosts regular_user@%s:/etc/hosts' % s print cmd os.system(cmd) I have written this script to copy ...