[OT] ssh login script - Please Help

Mikkel L. Ellertson mikkel at infinity-ltd.com
Thu May 7 16:55:52 UTC 2009


Mike Burger wrote:
> 
> Alternately, Dan ought to, instead of an expect script, use a non-root
> user, key-based authentication (bypass the password), scp the conf file to
> the non-root user's homedir, and sudo to provide root level privs to move
> the conf file into place and restart NTP.
> 
Or don't log in at all. Use scp to copy the file, and then ssh where
it is set to run a command when you connect. (Use the
comand="comand" format for the key.) One thing I am not sure of is
if you can use the same key for scp when using the command= option.

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/20090507/a8eba15f/attachment-0001.sig>


More information about the fedora-list mailing list