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: da_rinkes **
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: da_rinkes **
Check the output of Stderr (most people miss error output cause of this).
There is no special trick, mostly passwords are not echoed or echoed as '*'.
But it is still a normal write operation.
Hint: If you want to SSH through a SSH connection use local port forwarding.
SSH1 to Server1 -> Local Forward Port 22 of Server2 to 127.0.0.1:12345 -> SSH2 to 127.0.0.1:12345