steelbrain / node-ssh

SSH2 with Promises
MIT License
948 stars 94 forks source link

Error: All configured authentication methods failed #409

Closed Chizz3x closed 3 years ago

Chizz3x commented 3 years ago

Just tried to use node-ssh and it seems like something is wrong with authentication since the details that I am providing are 100% right.

await ssh.connect({
    host: 'myHost', // to not expose my host xd
    username: 'root',
    passphrase: 'myPass', // my actual pass for the private key
    privateKey: 'C:/Users/drebu/theKeyFile'
  })

I tried connecting with the same settings through Zoc terminal and it all works just fine, but now through node-ssh. I feel like I am doing something wrong here but can't quite understand what exactly.

Sorry, there was problem on my end.

steelbrain commented 3 years ago

Hi @Chizz3x

I see you closed this issue, were you able to resolve it? If so, What worked for you?

Chizz3x commented 3 years ago

Hi @Chizz3x

I see you closed this issue, were you able to resolve it? If so, What worked for you?

Seems like I was just using the wrong private key, nothing too interesting