Is it possible to load PuTTY connection information (session) from file?
Not from registry, not from command line, but from file?
I would like to have a file per each remote computer and open it with PuTTY so that it connects automatically.
Something like:
putty -load myfile.connection
UPDATE
putty user@host:port
will not load multiple parameters, like encoding, colors, etc
While putty -load "session name"
will take data from the registry
I wish to read data from file.
Best Answer
You can create a
.reg
file with all the settings:Import the settings using the
reg
command:And then load the imported settings using the
-load
switch of PuTTY:If you want, you can have the key deleted using the
reg delete
after starting PuTTY.A complete batch file would be:
(The two-second timeout is there to let the PuTTY load the settings before it gets deleted).
And of course there are loads of PuTTY clones that support configuration INI files. For example KiTTY.
Another option is to make use of WinSCP that can open PuTTY from a session specified on WinSCP command-line:
While WinSCP allows much wider set of options on its command-line, it does not support terminal-specific options, like colors.
(I'm the author of WinSCP)