Any way to make scp more powerful?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Any way to make scp more powerful?
# 8  
Old 03-26-2008
rdist is a good option ... we use rdist in our environment ....
# 9  
Old 03-26-2008
Quote:
Originally Posted by curleb
Generate your PK file with an empty passphrase. This will serve for your automation requirement..although it also has the dubious "keys to the kingdom" distinction.
Not possible. The policy is very strict and, as I said, not under our control.
Quote:
Originally Posted by Klashxx
rdist utility could match your requirements.
Regards
I have not heard of rdist. I will look into it and probably be back with more questions.

Thanks.
# 10  
Old 03-26-2008
Tools

pallak7:

Passphrase and password are not identical constructs under SSH Automation. Whether the policy dictates no embedding passwords into scripts or not, the passphrase is simply a means of challenging a would-be attacker with a pseudo-password. You can (and should) generate your passphrase at ssh-keygen runtime via the generator utility's prompting.

Once the passphrase is embedded into the key-pair, it's unknown and heretofore un-knowable..so long as the RSA/DSA algorithms remain un-cracked. However, it can be replaced or re-embedded later by way of the same ssh-keygen utility, but that is a convenience factor as well, should your policies require passphrases be expired similar to passwords.

My "keys to the kingdom" comment should not scare you from using this approach. It is the only means of full automation without embedding a plain-text string somewhere in the SSH/SCP/SFTP processing.

HTH
# 11  
Old 03-26-2008
If you have these many restrictions, this looks like a job for expect, where you can easily pass all the variables you need on the command line (like usernames and passwords, or directories and files) then let expect do the tarring, compressing, and scp'ing of files for you.
# 12  
Old 03-27-2008
@Klashxx:

After looking at rdist, it doesn't seem like this will be an option as it requires all machines to be running the rdist daemon, correct? The three servers do not run them and it's not likely that we ccould convince the administrators to do so.

Also, rdist would automatically update the servers whenever my local directory was updated, correct? I don't think we'd want that. We would only want the servers updated when we explicitly said so (i.e. OK, go deliver the code now).

@curleb:

I understand the concept behind a passphrase-less key but this cannot be a solution because of two things: 1. the policy (no passphrase-less keys) and 2. the fact that only 1 of the 3 servers even supports public-key authentication.

@System Shock:

As I said, I've tried expect with no success. It's just about as cumbersome as having to enter your password 5 times.

Anyways, it doesn't seem like I'll be able to get away from scp. That's fine. Our developers will just have to live with having to re-authenticate multiple times. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. What is on Your Mind?

Boy, is the shell powerful.

Reading replies to questions, as an amateur, I have learnt a lot from you pros on here. The shell in any of its guises is serioulsy poweful. With so many transient and resident commands at one's disposal is there anything, non-GUI, that cannot be done inside a default shell and terminal? ... (12 Replies)
Discussion started by: wisecracker
12 Replies

2. Shell Programming and Scripting

An curious idea, how to make it by the powerful script?

I use a simple script to do some quantum calculations with gaussian package. the script as follows #!/bin/sh #put a gaussian input file into a new folder in the same name #and submit this new job for i in *.gjf do FN=$( echo $i | sed 's/.gjf//') mkdir $FN mv... (1 Reply)
Discussion started by: liuzhencc
1 Replies

3. OS X (Apple)

Is Mac OS X Server Really Powerful?

Look We all know that Linux is almost BulletProof and about 40% faster than Win2K3 Server, When running Oracle DB, Right? Now my Question is can OS X run just as Well as Linux as a Server being PowerPC and Whatever, Can it be just as stable? Now You Tell me, Which is most Practical: Linux... (3 Replies)
Discussion started by: RedVenim
3 Replies
Login or Register to Ask a Question