SSH password as a command-line parameter?
Daniel Carrera
daniel.carrera at zmsl.com
Sun Jun 18 16:10:47 UTC 2006
Hi Neil,
Neil Blakey-Milner wrote:
> In particular, if you do have a key that doesn't require a passphrase
> (because it is going to be used for an automated process), it may be
> best to limit that key to only performing a single command. This can be
> done in the authorized_keys file.
Ok, I ended up going for this option. Thanks for the help. Now my backup
command looks like this:
ssh odf-backup > sql-backup-`date --iso-8601`.gz
Where 'odf-backup' is an appropriately configured host in ~/.ssh/config
Thanks for the help.
Cheers,
Daniel.
--
http://opendocumentfellowship.org
"The reasonable man adapts himself to the world; the
unreasonable man tries to adapt the world to himself.
Therefore all progress depends on unreasonable men."
-- George Bernard Shaw
More information about the ubuntu-users
mailing list