in reply to IO::Pty, Net::Telnet and SSH [SOLVED]
This in no way answers your actual question, but it may be a solution to the problem
why not skip the keyboard-interactive all together, and use one of the earlier things on the list, one that won't ever let you down...
How about passwordless Ssh keys? they're quick, fun and easy to use!
This should be enough to get you going, you may want to restirct the commands that can be run with this key, etc. (ask the man, he'll know)
f00li5h@localhost:~$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/f00li5h/.ssh/id_rsa): enter Enter passphrase (empty for no passphrase): enter Enter same passphrase again: enter Your identification has been saved in /home/f00li5h/.ssh/id_rsa. Your public key has been saved in /home/f00li5h/.ssh/id_rsa.pub. The key fingerprint is: omitted # now append the new key to the list of keys allowed on the remote host f00li5h@localhost:~$ cat ~/.ssh.id_rsa.pub | ssh $otherbox ' cat >> .ssh/authorized_keys' Password: enterthat will be the last time you have to give a password for $user_you_are_now@$host_you_are_at_now to ssh to $user_you_specified@$otherbox
Just make sure that your home directory, and your ssh directory are not group or world writable, or ssh will ignore the hey (it's a little paranoid, don't ya know)
I've made whole bundles of assumptions here, but it still may help. (this is also super handy if you have home directories common to many boxes, because the keys end up on all of the machines)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: IO::Pty, Net::Telnet and SSH
by Anonymous Monk on Nov 04, 2006 at 13:11 UTC | |
by fmerges (Chaplain) on Nov 04, 2006 at 14:27 UTC |