pty.js
pty.js copied to clipboard
How to open terminal using ssh key ?
Hi i have a ssh key content to a varialbe how can i use it to spawn ssh session ?
Good question, ...
I think the only way for now is to save it in a file, and use then with the -i option. ...
If someone has a better idead I'm open for it! ...
Is there a way that u can spawn the ssh using a object array ? i do it like this on another ssh modules ..
var term = pty.spawn('ssh', ["-i", key.pem, user@host], { name: 'xterm-color', cols: cols || 80, rows: rows || 24, cwd: process.env.PWD, env: process.env });