MarketSquare / SSHLibrary

Robot Framework test library for SSH and SFTP
http://marketsquare.github.io/SSHLibrary/
Other
158 stars 139 forks source link

Question: Does SSHLibrary do support TTY? #424

Closed gregory83 closed 1 year ago

gregory83 commented 1 year ago

Hello,

I'm working on case where sudo and sudo_password are needed.

But it failed with current error:

06:25:52.079 | INFO | stderr:  We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:      #1) Respect the privacy of others.     #2) Think before you type.     #3) With great power comes great responsibility.  sudo: no tty present and no askpass program specified |  
-- | -- | -- | --

Does this library support tty? I was not able to see anything related to TTY in documentation.

While using SSH directly it works when '-t' is passed to command line.

Thanks in advance for any answer.

/Greg.

gregory83 commented 1 year ago

Well nevermind I find my mistakes :)