Connect to ssh using ssh2 and prompt stdin for host verification, key decryption etc. Similar to what standard ssh does.
npm install ssh-connect-prompt
var connect = ;// c is a ssh2 connection.var c = ;// Host verification events and passphrase input will be forwarded to the terminal as a prompt in// a way that is similar to the regular ssh promptc;c;
$SSH_AUTH_SOCK is set it will be passed as an agent and
id_rsa will be used as the private key per default.
When a key is verified it will be added to ~/.ssh/known_hosts - just like regular ssh