How to go thru interactive ssh gw.
Hi,
I tried all combination of posts I read about ssh forwarding, but could not find the answer to my case.
Situation (using winscp 3.6.8 b245): MYcomp. -> interactive ssh GW -> Target server.
By 'interactive' I mean it asks from me where to connect, what protocol ("What kind of connection? [1 = telnet, 2 = ssh (default)]") to go on further, what username to use for target.
In putty I connect via ssh to this GW, then fill in the lines interactively.
How can I set this GW in winSCP?
Using a SCP shell command "hostname\n2\nusername\n" DID not succeeded in feeding the lines;
"ssh hostname" command neither worked.
Some log snippets follows (cutted confidential parts):
. WinSCP Version 3.6.8 (Build 245) (OS 5.0.2195 Service Pack 4)
. User name: none (Password: No, Key file: No)
. Transfer Protocol: SCP
. SSH protocol version: 2; Compression: No
. Agent forwarding: Yes; TIS/CryptoCard: No; KI: No; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: No
. Shell: ssh <confidential>, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: No, Unset nat.vars: No, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: No, Scp1 Comp: No
. Successfully started encryption
. Sent username "none"
. Remote dLogin permitted without a password because the account has no password.
. Authentication successful
. Started session
. --------------------------------------------------------------------------
. Using SCP protocol.
. Doing startup conversation with host.
. Skipping host startup message (if any).
> echo "WinSCP: this is end-of-file:0"
! Can't open -c: No such file or directory
! Can't open ssh <censored target server ;)>: No such file or directory
. Waiting for data timed out, asking user what to do.
. Asking user:
. Host hasn't answered for 15 seconds.
.
. Wait for another 15 seconds? Pressing 'Abort' button will close session. ()
. Attempt to close connection due to fatal exception:
* Terminated by user.
. Closing connection.
* (ESshFatal) Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
* Terminated by user.
Maybe this part is especially relevant to my case:
"> echo "WinSCP: this is end-of-file:0"
! Can't open -c: No such file or directory"
What is this echoing file, and where to set (non)skipping startup messages?
I tried all combination of posts I read about ssh forwarding, but could not find the answer to my case.
Situation (using winscp 3.6.8 b245): MYcomp. -> interactive ssh GW -> Target server.
By 'interactive' I mean it asks from me where to connect, what protocol ("What kind of connection? [1 = telnet, 2 = ssh (default)]") to go on further, what username to use for target.
In putty I connect via ssh to this GW, then fill in the lines interactively.
How can I set this GW in winSCP?
Using a SCP shell command "hostname\n2\nusername\n" DID not succeeded in feeding the lines;
"ssh hostname" command neither worked.
Some log snippets follows (cutted confidential parts):
. WinSCP Version 3.6.8 (Build 245) (OS 5.0.2195 Service Pack 4)
. User name: none (Password: No, Key file: No)
. Transfer Protocol: SCP
. SSH protocol version: 2; Compression: No
. Agent forwarding: Yes; TIS/CryptoCard: No; KI: No; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: No
. Shell: ssh <confidential>, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: No, Unset nat.vars: No, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: No, Scp1 Comp: No
. Successfully started encryption
. Sent username "none"
. Remote dLogin permitted without a password because the account has no password.
. Authentication successful
. Started session
. --------------------------------------------------------------------------
. Using SCP protocol.
. Doing startup conversation with host.
. Skipping host startup message (if any).
> echo "WinSCP: this is end-of-file:0"
! Can't open -c: No such file or directory
! Can't open ssh <censored target server ;)>: No such file or directory
. Waiting for data timed out, asking user what to do.
. Asking user:
. Host hasn't answered for 15 seconds.
.
. Wait for another 15 seconds? Pressing 'Abort' button will close session. ()
. Attempt to close connection due to fatal exception:
* Terminated by user.
. Closing connection.
* (ESshFatal) Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
* Terminated by user.
Maybe this part is especially relevant to my case:
"> echo "WinSCP: this is end-of-file:0"
! Can't open -c: No such file or directory"
What is this echoing file, and where to set (non)skipping startup messages?