Thursday 25 February 2016

Using Node to spawn an SSH process and then input a password?

So two things right off the bat, on the system I am working in, we cannot use key-based authentication, and I cannot install a new package such as sshpass, I have to work within these limitations, despite the other two being great solutions.So basically the title is my problem. I can spawn a child process in node to create an SSH connection (I am creating a tunnel for proxy reasons) but the ssh connection requires a password and I cannot for the life of me figure out how to input the password also through node. Any help?

Submitted February 25, 2016 at 05:34PM by Woofington

No comments:

Post a Comment