SFTP via SSH tunnel with only WinSCP command line?

Advertisement

andnet81
Joined:
Posts:
3
Location:
Germany

SFTP via SSH tunnel with only WinSCP command line?

Hi,
is it possible to access an SFTP server via an SSH tunnel by using the WinSCP command line tools?

I do not want to use Putty or any other tools to set up the tunnel ahead of time.

WinSCP allows selecting a tunnel in the GUI, but I can not configure it for command line usage.
Tried for hours with ini files and scripts...


Can anyone help?

Reply with quote

Advertisement

rac3r5
Joined:
Posts:
4

try this:


C:\>cd "C:\Program Files (x86)"

C:\Program Files (x86)>cd winscp

C:\Program Files (x86)\WinSCP>winscp
winscp> help    

Reply with quote

werewhelk
Joined:
Posts:
1

tomb wrote:

Did you try the Tunnelxxxx parameters in the -rawsettings option?

https://winscp.net/eng/docs/rawsettings

I found this post while trying to do the same thing (non-interactive start of a session through a tunnel).

It almost works, but I'm still getting prompted for the password for the tunnel host.

I tried using TunnelPassword= but this doesn't seem to do anything.
I've tried it both with a cleartext password and also using the encrypted string lifted straight from the INI file.

Does anyone have a solution, or am I just being dumb ?

Edit: I've found the solution. You need to use the "TunnelPasswordPlain=" setting.

Reply with quote

cedric7630
Guest

werewhelk wrote:

Edit: I've found the solution. You need to use the "TunnelPasswordPlain=" setting.
Je n'ai pas réussi... peut tu m'expliquer comment tu as fait stp? Merci
(my english is terrible, how do you do please?)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

cedric7630 wrote:

Je n'ai pas réussi... peut tu m'expliquer comment tu as fait stp? Merci
It's shown in the link in my previous post.

Reply with quote

Advertisement

You can post new topics in this forum