Topic "Creating a session list by editing .ini file with PuTTY port tunneling"

Author Message
Pirm

Guest


Hello,

I'm currently preparing a sharable WinSCP.ini-File which co-workers can easily import to have the same WinSCP settings as me.

However I can't seem to get the sessions to use the settings I described in my WinSCP.ini.

I've converted our Server list into the following format (actual names and numbers converted to variables for privacy reasons):
Code:
[Sessions\Servers/Service/user@FQDN (Section)]
HostName=localhost
PortNumber=$local_Port_for_PuTTY_tunneling
Username=$USERNAME
LocalDirectory=C:%5CUsers%5C
RemoteDirectory=/

and added these Session-Sections to WinSCP.ini.

However when restarting WinSCP with the newly created WinSCP.ini I can see the properly created sessions but they don't use HostName and PortNumber but instead use defaults (blank HostName and PortNumber of 22).

A working Session in my current WinSCP.ini looks similar:
Code:
[Sessions\Servers/user@server1]
HostName=localhost
PortNumber=1234
UserName=root21b


I've changed HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Tunnelsession\PortForwardings accordingly.

Could it be parts of the current configuration interfering with the new structure?
Deleting entries in the SshHostKeys and Configuration\CDCache-Sections did not help.

Thanks for your help,
Pirm
Advertisements
Pirm

Guest


Sorry, could you move this to the Support/Bug-Section of the Forum please? Neutral
Also: WinSCP 5.5.3 Build 4214 on Windows 7 Enterprise
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Why don't you just create the INI file in GUI?
Pirm

Guest


prikryl wrote:
Why don't you just create the INI file in GUI?

Because that is a lot of work and using xml/csv-files as data sources is much more convenient.
I would have to add sessions for about 80 servers (some newly installed) manually.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Just encode the spaces in session name as %20.
Pirm

Guest


As always, it's the little things...

This did the trick, thank you very much! Wink
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License