automate complex connection activity
Hi all!
at connection I get error (log):
It is because shell is not bash - it is custom server script, that requires 3 times to press enter, and only after this it starts bash.
Is any ability to automate this moment: do not send "WinSCP: this is end-of-file:0", but send "WinSCP: this is enter:13" three times?
at connection I get error (log):
. 2015-12-29 12:52:42.775 Sent password . 2015-12-29 12:52:42.946 Access granted . 2015-12-29 12:52:43.026 Opened channel for session . 2015-12-29 12:52:43.106 Started a shell/command . 2015-12-29 12:52:43.106 -------------------------------------------------------------------------- . 2015-12-29 12:52:43.106 Using SCP protocol. . 2015-12-29 12:52:43.116 Doing startup conversation with host. . 2015-12-29 12:52:43.116 Skipping host startup message (if any). > 2015-12-29 12:52:43.116 echo "WinSCP: this is end-of-file:0" ! 2015-12-29 12:52:43.196 Traceback (most recent call last): ... ..(I cut it for security reason)... ... . 2015-12-29 12:52:43.276 Server sent command exit status 1 . 2015-12-29 12:52:43.276 Disconnected: All channels closed * 2015-12-29 12:52:43.286 (ESshFatal) Connection has been unexpectedly closed. Server sent command exit status 1. * 2015-12-29 12:52:43.286 Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
Is any ability to automate this moment: do not send "WinSCP: this is end-of-file:0", but send "WinSCP: this is enter:13" three times?