[OT] ssh login script - Please Help

Mikkel L. Ellertson mikkel at infinity-ltd.com
Sat May 9 14:11:13 UTC 2009


Bill Davidsen wrote:
> 
> You don't need to do two operations, you can pass the file to the script:
>   cat myfile | ssh -i myscript.key machine [optional args]
> the first command in the script is something like:
>   dd of=safedir/new.myfile
> 
> You can pass arguments to the script, they will end up in
> $SSH_ORIGINAL_COMMAND which can be read by the script. My backup script
> takes full|incr|config|logs|crit argument on the client and sends the
> backup data to stdout where I can save it.
> 
A much better way to do it then I had posted. I like it!

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090509/ec6d4e89/attachment-0001.sig>


More information about the fedora-list mailing list