Re: How to Use scp non-interactively
From: Chuck (skilover_nospam_at_softhome.net)
Date: Wed, 05 Jan 2005 08:41:42 -0500
-----BEGIN PGP SIGNED MESSAGE-----
| Thank you for replying. We can not use sftp with a script option
| because we need to get a file and do some processing on it before
| getting the next one. Also, we can not use publickey authentication and
| ssh-agent because we don't use this authentication method. We only use
| Any other ideas? Thanks in advance.
| Terry Liang
You're obviously concerned about security or you wouldn't be using scp
in the first place. Since that's the case, why not step up the security
a notch further and use RSA authentication? That would allow for
non-interactive authentication using ssh-agent to cache the private key.
If this is something that's beyond your control and you are being forced
to use passwords, then maybe you should not use scp either. You could
always use pgp or gpg (open source) to encrypt the file before sending
it and use ftp to do the actual transfer. Passwords for batch processes
can be stored in the $HOME/.netrc file. FTP has a big security hole in
it though as it sends passwords over the network in plain text.
To reply by email remove "_nospam"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----