I am working on a node js project and in this project I need to write a command that will run on the linux command line. The command is
ssh -L 0.0.0.0:9999:hostname:5905 username@hostname
I have tried the cmd.run() function and it is running the command but as this is a ssh command it is asking for a password and the project is struck on that.
Someone please help me.