I have a text blob that contains ip, port, user and passord and would like to write a small utility script where I can:
- paste the text in stdin
- extract the connection details using regex or any other means
- use node to launch ssh interactively using my parsed values
How would I launch the ssh command from node with the arguments, exit node and continue on ssh'ing? The documentation I've found regarding i.e. child_process concerns launching and controlling the process within node, but I simply want to exit back and take over once ssh is started.