x-proxytelnetcommand is not taken into account when opening from browser

Advertisement

dw@...
Guest

x-proxytelnetcommand is not taken into account when opening from browser

If I open this URL in the browser, proxymethod will be set to local but the command remains empty.
winscp-scp://root:pw;x-agentfwd=1;x-proxymethod=5;x-proxytelnetcommand=abc@lc0664tunnel.labcube.ch/root/;save
I also tried with x-proxylocalcommand.

None of both work when opened via URL.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: x-proxytelnetcommand is not taken into account when opening from browser

That's a deliberate security measure to prevent unintended arbitrary code execution by simply clicking a link in web browser.

If you want to take the risk, you can remove /Unsafe switch from protocol handling command in registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\sftp\shell\open\command]
@="\"C:\\Program Files (x86)\\WinSCP\\WinSCP.exe\" /Unsafe \"%1\""

Reply with quote

Advertisement

You can post new topics in this forum