tpresley / node-remote-exec

Execute shell commands on one or more remote computers via SSH
MIT License
15 stars 6 forks source link

[Error: Timed out while waiting for handshake] #5

Open bgobi1991 opened 9 years ago

bgobi1991 commented 9 years ago

Hi Team,

I got following error when executing commands.

var connection_options = { port: 22, username: 'myusername', password: 'mypassword' };

var hosts = [
    'myhost'
];

var cmds = [
    'ls -l',
    'cat /etc/hosts'
];

rexec(hosts, cmds, connection_options, function(err){
    if (err) {
        console.log(err);
    } else {
        console.log('Great Success!!');
    }
});
harsha-bhat commented 8 years ago

Getting the same error. Have you found a solution by any chance?

astutesoftware commented 5 years ago

changing the param from passphrase to password works.