PuTTY session created for Telnet with a socks5 proxy (no auth needed) and named it to telnet_session_with_proxy
If I use PuTTY with selecting the given session, the Network Element is reachable (through the proxy), I can log in:
putty.exe -load telnet_session_with_proxy 172.26.2.21
However, when PLINK is used (same session, same host), the proxy refuses the connection:
plink.exe -load telnet_session_with_proxy 172.26.2.21
FATAL ERROR: Proxy error: Connection refused
What is the difference between PuTTY CLI and PLINK? There should not be any, should it? I suspect the session data is not fully or correctly read when executing plink.
If I hard-set the host address in the session and call plink with or without stating the host in the CLI (it is ignored), it connects to the host stated in the session through the proxy, e.g.:
plink.exe -load telnet_session_with_proxy
This is not a solution for me, as I want to set the host in the CLI using 1 session setup for several hosts.
Note that SSH sessions work OK through proxy with hosts defined in the CLI. It is not a solution for me either, as these old boxes only speak Telnet.
Can anyone help with this?
- Plink
- Telnet session
- through proxy
- host in CLI