-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streamed connection doesn't output anything #4
Comments
It should just echo what you type (thats what |
Ahh yes, that works. I was trying to implement this in order to start a terminal session as though you'd just ssh'd into a server in the traditional way. However, I don't get the host name or etc? If I run
I get a shell session, but there's no host name or anything, it's just blank? Sorry if this doesn't make any sense, having trouble explaining this one! |
Ah. What you wanna do is var exec = require('ssh-exec')
process.stdin
.pipe(exec('/bin/bash --rcfile .bashrc -i', 'user@remote.com'))
.pipe(process.stdout) |
Ahaaaa! Fantastic. Thanks for that :) Great library by the way. |
👍 You probably want to set |
Going by your example, I tried doing
It connects, but when I run a command, nothing happens?
Cheers in advance!
The text was updated successfully, but these errors were encountered: