-rawsettings ProxyTelnetCommand do not work in URL

Advertisement

koka
Joined:
Posts:
13

-rawsettings ProxyTelnetCommand do not work in URL

ok – winscp.exe ssh://root@10.161.115.160/ -rawsettings ProxyMethod=6 ProxyHost=12s
ok – start ssh://root;x-ProxyMethod=6;x-ProxyHost=12s@10.161.115.160/
ok – winscp.exe ssh://root@10.161.115.160/ -rawsettings ProxyMethod=5 ProxyTelnetCommand="ssh -W%host:%port 12s"
bug – start ssh://root;x-ProxyMethod=5;x-ProxyTelnetCommand=ssh+-W%25host%3A%25port+12s@10.161.115.160/
bug – start ssh://root;x-ProxyMethod=5;x-ProxyTelnetCommand=ssh+-W10.161.115.160%3A22+12s@10.161.115.160/
bug – start ssh://root;x-ProxyMethod=5;x-ProxyTelnetCommand=ssh%20-W10.161.115.160%3A22%2012s@10.161.115.160/

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,011
Location:
Prague, Czechia

Re: -rawsettings ProxyTelnetCommand do not work in URL

What "bug"? How are you running the start commands?

Please post session log files both from (when executed directly in cmd console):
winscp.exe /log=rawsettings.log ssh://root@10.161.115.160/ /rawsettings ProxyMethod=6 ProxyHost=12s
and
winscp.exe /log=url.log ssh://root;x-ProxyMethod=5;x-ProxyTelnetCommand=ssh+-W10.161.115.160%3A22+12s@10.161.115.160/

Reply with quote

koka
Joined:
Posts:
13

Direct run WinSCP.exe with url is Ok (url.log)
Run WinSCP.exe over url handler WinSCP.exe /Unsafe "%1" is not Ok (startWithUnsafe.log)
Run WinSCP.exe over dirty fixed url handler WinSCP.exe %1 is Ok (startWithoutUnsafe.log)
Description: Direct run WinSCP.exe with url is Ok
Description: Run WinSCP.exe over url handler `WinSCP.exe /Unsafe "%1"` is not Ok
Description: Run WinSCP.exe over dirty fixed url handler `WinSCP.exe %1` is Ok

Reply with quote

martin
Site Admin
martin avatar

Ok, actually, yes that's expected.
Executing random local commands over URL is not allowed. That's the very point of /Unsafe.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum