MarketSquare / SSHLibrary

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

SSHException: Channel Closed on Execute Command #430

Open paulvno opened 1 year ago

paulvno commented 1 year ago

I get an SSHException: Channel closed exception when calling Execute Command. All other functions within the library work; it's only Execute Command that returns the exception. Host, User, and Pass are valid as I can execute the mkdir command outside (windows shell) of Robot without issue. The FTP server logs show nothing unusual, just the connection open/close - no warnings/exceptions.

Using:

Sample code

FTP Create Folder

   ${HOST}=    Set Variable    <host>`
   ${USER}=    Set Variable    <user>
   ${PASS}=    Set Variable    <password>

   Open Connection    ${HOST}
   Login    ${USER}    ${PASS}    delay=1
   Execute Command    mkdir test-folder