node.js - SSH agent forwarding on Windows (pageant) -
when try connect through ssh language (tried golang & nodejs) 1 of servers windows agent forwarding doesn't work. i'm saying because commands git pull throwing errors (permission denied (publickey)), while there aren't if login directly using putty. tried use env. variable ssh_auth_sock seems there's no such variable set on windows. expected pageant doing job.
code example in nodejs (simple-ssh lib):
this.ssh = new ssh({ // other unimportant variables agent: process.env.ssh_auth_sock, // undefined agentforward: true });
how work on windows?
for pageant on windows, should use special 'pageant'
value agent
instead:
this.ssh = new ssh({ // other unimportant variables agent: 'pageant', agentforward: true });
Comments
Post a Comment