Suggestion: Allow specification of where session & sshostkeys files are stored #112

Open
puterboy opened this Issue Oct 22, 2013 · 1 comment

Projects

None yet

2 participants

@puterboy

I love the portability idea that allows for sessions and sshostkeys to be saved to files.

However, it would be nice to specify where that file is stored rather than having it stuck in the same directory as the executable (WinSCP allows this). This would allow one to keep the executable in a relatively public folder while storing the session and host keys in one's own private space.

Implementing this might require a registry entry or maybe a short .ini lying within the executable directory... but it is a nice compromise between the difficult-to-port registry storage and the total portability of a single folder tree.

The advantage of a registry entry here is that it could be easily customized on a per-user basis using HKCU.

Also, it would be nice to have an option to store all the values in a single file rather than having 2 folders of files (again similar to WinSCP)

@Nilzor
Nilzor commented Oct 15, 2014

This is already implemented, but it was difficult to find it documented. I eventually found the docs offiste here after having searched for an hour or so.

You must a file named putty.conf in the same folder as the .exe file and have a line pointing to the folder to load sessions from like this:

sessions=%UserProfile%\OneDrive\Files\PuttySessions
sshhostkeys=\ssh\hostkeys

Important: You must end the file with a blank line, or putty.exe crashes on startup...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment