-p Read passphrase from stdin (or pipe)
from ssh-add man page.
create a ~/bin/echoSecret, 'chmod 500 ~/bin/mySecret'
#! /bin/sh
echo "bigSecret"
then you can do
~/bin/echoSecret | ssh-add -p
Jerry Yu
Systems Engineer                https://punch/~zyu
Premiere Technologies                ">zyu@tc.net
404-262-8544 (O)        
On Thu, 6 Apr 2000, Jeff Dilcher wrote:
#Yes, the problem I have, however, is that ssh-add seems to require
#you to type in your password in at the console, rather than accepting
#a command line argument, as I wish it would. I may be missing something
#obvious, though, so if you know otherwise, let me know!
#
#-Jeff
#
#
#-----Original Message-----
#From: Yu, Jerry ">z.yu@Ptek.com>
#To: Jeff Dilcher ">dilcher@cueva.com>
#Cc: ">ale@ale.org ">ale@ale.org>
#Date: Wednesday, April 05, 2000 12:51 PM
#Subject: Re: [ale] ssh without a manually supplied password
#
#
#>you can generate a new pair of keys with a empty (null) passphrase.
#>security risk blah blah. wonder if you can change the existing keys to do
#>that.
#>
#>you can set up ssh-agent (with ssh-add). ssh-add actually take passphrase
#>from command line arguments. So, you can do a little init script to
#>wrap this up and tie it to your system run level. With the permission
#>carefully set, it could be somewhat safer than the null-passphrase
#>approach.
#>
#>Jerry Yu
#>Systems Engineer https://punch/~zyu
#>Premiere Technologies ">zyu@tc.net
#>404-262-8544 (O)
#>
#>On Thu, 6 Apr 2000, Jeff Dilcher wrote:
#>
#>#Hello,
#>#
#>#I am thinking of setting up Fetchmail to reqularly check an ISP
#>#for mail within an SSH session.
#>#
#>#I would like to have happen without me having to type in a
#>#password at any point.
#>#
#>#I think I read that you can have SSH only prompt for a password
#>#on the first connection only using an authorization agent. I would
#>#like to never have to input a password manually.
#>#
#>#Is this possible?
#>#
#>#--
#>#To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message
#body.
#>#
#>
#>--
#>To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message
#body.
#>
#
#--
#To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.
#
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.