I have been using ssh.net successfully, but recently I have been having a very interesting issue which I need help for:
I can log on to a linux server, ssh to another and use sudo successfully.
Recently, I tried to decrypt a file with a pcipher tool which needs a password. I used the ShellStream Expect to wait for the password prompt, and WriteLine to enter it. For some unknown reason, the signon always fails. It seems like the only way I can use the pcipher tool sucessfully to decrypt a file is by loging to unix server with something like putty and enter the password right from the keyboard.
Is there a special trick for using Shellstream to enter a password in some cases?
Does anybody have any idea, I would really appreciate any help
Thank you.
Den
Comments: ** Comment from web user: Alkampfer **
I can log on to a linux server, ssh to another and use sudo successfully.
Recently, I tried to decrypt a file with a pcipher tool which needs a password. I used the ShellStream Expect to wait for the password prompt, and WriteLine to enter it. For some unknown reason, the signon always fails. It seems like the only way I can use the pcipher tool sucessfully to decrypt a file is by loging to unix server with something like putty and enter the password right from the keyboard.
Is there a special trick for using Shellstream to enter a password in some cases?
Does anybody have any idea, I would really appreciate any help
Thank you.
Den
Comments: ** Comment from web user: Alkampfer **
I have a similar problem with sudo, I'm not able to execute commands with sudo, I've followed instruction at this link [in Stack overflow](http://stackoverflow.com/questions/27953227/sudo-command-in-the-c-sharp-ssh-net-library) but I alwasy got a Wrong Password as response.
I'm curiouos of the code you are using to have sudo works.
Gian Maria.