[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] automating ssh script
- Subject: [ale] automating ssh script
- From: elanda at xeme.com (Ed Landa)
- Date: Tue, 30 Jul 2002 08:25:28 -0400
> So, using this method, you still get an initial prompt for the passphrase if
> the key contains one. Not ideal for automation.
One alternative is creating a key for the specific task you have in mind and
restricting it on the server end. In the authorized_keys you can specify the
"command" option for a certain key, which will have ssh execute that command
when the key is used to connect, ignoring any command the user might have sent.
Use the -i option of ssh to specify the key to use so that ssh doesn't
negotiate using all of its keys.
This has worked fairly well for me in the past.
Ed
PGP signature