Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
cedric7630

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?)
martin

werewhelk wrote:

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

I have added this to documentation:
https://winscp.net/eng/docs/rawsettings
werewhelk

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.
andnet81

Guys, seriously. Did you read my posting?

The importand word is "tunnel".
rac3r5

This should help you
cd "C:\Program Files (x86)"

cd WinSCP
winscp /console /script="C:\temp\myScript.txt"


and myScript.txt should contain.
open sftp://userName:password@host:port

put licence.txt
close
exit

https://winscp.net/eng/docs/commandline
rac3r5

try this:


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


C:\Program Files (x86)>cd winscp

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

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?