Quote:
Originally Posted by getraj.12@gmail.com
Note : I do not have ssh password less authentication enabled for all the servers and I have 200 + servers to login.
|
Oops. I missed the
not in that sentence.
I agree with Turbocapitalist. But I use
keychain to store my key in memory. That is, the first time I login after a boot, I'm prompted for the passphrase that unlocks my SSH private key. Then the unlocked key is held in memory (even when I'm logged out) until the machine is rebooted or I kill the keychain process.
With that setup, I can use
ssh and
scp to access every host which I have previously added my public key to. The public key from the desktop in front of you, e.g.
~/.ssh/id_dsa.pub, must be appended to the
~/.ssh/authorized_keys file on all those servers. They're both text files.
Otherwise, maybe flirek's suggestion of
expect was reasonable. It allows you to automate typing in a password.