5
votes
2answers
108 views

Passing a private key to scp from the command line instead of a file [closed]

Is there a way to pass the contents of a private key directly to the scp command instead of having to copy it to a file and pointing at it via the -i /path/to/key.pem option? So instead of doing: ...
3
votes
2answers
132 views

How to parallelize the for loop while scp the files?

I am running my below shell script from machineA which is copying the files machineB and machineC into machineA. If the files are not there in machineB, then it should be there in machineC. The below ...
2
votes
3answers
147 views

How to parallelize the scp command?

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 ...
1
vote
2answers
106 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 ...
1
vote
2answers
286 views

Cannot log in to bash

I was trying to install ncurses on a virtual Debian server on VMware and somehow was unsuccessful. After logging out of the console, I realized that I could not log in anymore. I cannot use tools such ...
0
votes
1answer
369 views

cygwin scp to linux box corrupts files, while winscp fixes the corruptions?

I have a bash script for deploying my app jars and sh files from the dev machine to prod machine (centos). it simply calls scp and copies all the necessary files. when I run it from an ubuntu box, ...
3
votes
3answers
242 views

SCP overwrites files with dollar signs

I have this files: A.class A$1.class A$2.class And a bash script with something like: for i in *; do scp "${i}" foo@bar:/tmp/; done This works fine. All three files are copied. The problem ...
0
votes
0answers
42 views

How write .sh script to remote copy files between linux [duplicate]

Possible Duplicate: How to pass password to scp command used in bash script? when use scp to remote copy file between servers then type "YES" and "PASSWORD" I don't know how to auto type ...
0
votes
0answers
168 views

scp in for loop for installing printers — connection refused

I could've sworn I was able to setup printers by: setup first host with lpadmin setup additional hosts with for loop: wherein stop cups copy printers.conf over start cups for host in ...
2
votes
4answers
927 views

SSH not seeming to run in bash script called via web server

I have a simple shell script that: Makes a directory on the remote machine. Copies a .epub file to the remote machine's new directory. Runs kindlegen to convert the .epub to a .mobi. The remote ...
15
votes
6answers
135k views

How to pass password to scp command used in bash script? [duplicate]

Possible Duplicate: Connect through SSH and type in password automatically, without using a public key I have a bash script that makes dump of DB then copies file from one server to another ...
0
votes
2answers
3k views

“Corrupted MAC on input. Packet Corrupt” on file transfer over SSH, SCP, and FTP on Linux Server

help on this would be great. Specs: LAMP server Linux OS - Debian 5.0.1 4x Intel(R) Xeon(TM) CPU 2.80GHz Important Packages: openssl - SSL security iptables - firewall to block all requests ...
1
vote
2answers
231 views

Remote editing with diff / patch?

I do most of my work in vim. I much prefer to edit files using vim locally rather than sshing into a server and running vim there, for many reasons, one of the most important being UI responsiveness ...
4
votes
3answers
410 views

Test if login is an scp connection

I'm echo'ing various machine statistics on login, but this is problematic for SCP and SFTP, is there a shell variable I can test for?
0
votes
2answers
679 views

Can I use expect with SCP to bypass the password prompt?

I am trying to transfer some files using SCP in a shell script, but I am being prompted for my password on the remote machine. Can I use expect with scp to enter the password so I don't have to type ...
2
votes
3answers
505 views

Error while using scp

I use "scp" command in my shell script. How do I get the error log , if that command is not working. This is how I am using it scp file username@servername:/specificdirectory/
1
vote
2answers
907 views

Bash Script to copy file across network unattended?

I would like to create a script that would execute a series of scp commands. This would pull a specific set of files from another computer on the network to a specific directory on the local machine. ...
3
votes
2answers
743 views

Bash Script for SCP — SSH Keys

I'm working as a programmer at the moment, and as a result need to constantly upload my software to remote systems for testing. I have about 7 machines which need to receive copies of everything. At ...
0
votes
3answers
428 views

Variable directory names over SCP

We have a backup routine that previously ran from one disk to another on the same server, but have recently moved the source data to a remote server and are trying to replicate the job via scp. We ...
2
votes
2answers
581 views

SCP from one external server to another

I am trying to a SCP on my local server that copies a file from one remote server to another remote server (Both remote servers use a custom port (xxxx) I am trying: scp -r -P xxxx ...