|
Hi, I have a setup where on the server side (OpenSSH), I have a special user account that has a login shell that does not actually start an (interactive) shell but a program that directly outputs a string to stdout (like every hello world program or This results in the following behaviour when connecting via ssh: On the client side, I want to use russh to connect to this account and capture its output (
Do you know, how I can capture the string? |
Replies: 1 comment 1 reply
|
Both approaches should work, post your code pls Also, just running OpenSSH from the terminal like that makes a PTY request, depending on your "shell" program, you might need to do a request_pty on your channel |
Both approaches should work, post your code pls
Also, just running OpenSSH from the terminal like that makes a PTY request, depending on your "shell" program, you might need to do a request_pty on your channel