From: Hal Fulton Date: 2004-07-21T06:54:17+09:00 Subject: Re: Now a different Net:SSH error... Jamis Buck wrote: > Ah, yes. This is on my TODO list. I suspect, if you were to do a cat on > your private key (.ssh/id_rsa), you would see (in addition to a lot of > base64 encoded gibberish) some "Name: Value" pairs in your key... > (please check, if you don't mind) If you don't, then there is something > else afoot. If you do, then that's the problem, and I would REALLY > appreciate it if you could send me the exact command you used to > generate that key so I can try to duplicate this problem... :) Quite right, I have a couple of pairs at the top. Unfortunately, I can't begin to recall how I generated that file. > Net::SSH knows how to parse out the name/value pairs, but it doesn't > know what to do with them, and since I've never been able to generate a > key that has those name/value pairs, I can't duplicate the problem. :( > > What REALLY needs to happen is I need to write some code that will query > the active ssh-agent (if one is running) and have the agent give me all > the info I need about the keys. > > Like I said, it's on my TODO list. The workaround is to specify the > username/password in your script, or to generate a key that doesn't have > the name/value pairs in them. Well... I *did* specify the username and password in the script. As for generating a new key... I'm not sure what to use for -t: $ ssh-keygen You must specify a key type (-t). Usage: ssh-keygen [options] Options: -b bits Number of bits in the key to create. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -f filename Filename of the key file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. -p Change passphrase of private key file. -q Quiet. -y Read private key file and print public key. -t type Specify type of key to create. -B Show bubblebabble digest of key file. -C comment Provide new comment. -N phrase Provide new passphrase. -P phrase Provide old passphrase. > Gotta love experimental software. :) Oh, yeah! Hal