How can I use ~/.ssh/config with Windows/PuTTY? Are PuTTY settings stored in the registry? I wish to have my PuTTY settings in git. So it needs to be a human readable text file.
Asked
Active
Viewed 1.7k times
10
Thomas Dickey
- 75,040
- 9
- 171
- 268
Sybil
- 1,653
- 5
- 19
- 37
-
5I'm voting to close this question as off-topic because The question appears to ask if Putty settings are store in the registry, this is a unlix/linux forum. – X Tian Jun 30 '15 at 11:16
-
@XTian - PuTTY is a Windows and Linux application. Shown here: http://www.linuxtechi.com/install-putty-in-ubuntu/. Wikipedia page lists it as both too: https://en.wikipedia.org/wiki/PuTTY. Granted the OP is asking in the title w/ "Windows/PuTTY" so it's unclear if they this Q is targeted to Windows or Linux but this Q does have some merit. – slm Jun 30 '15 at 12:37
-
In windows's world putty setting are store in registry, finding where, using google, should be easy. you basically export anything under Simon_Tathman (not sure of spelling tho). – Archemar Jun 30 '15 at 12:38
-
1On a side note, what do you intend to put under git ? ~/.ssh/config ? or dump of putty registry ? – Archemar Jun 30 '15 at 12:40
-
Might be useful to this Q: this Perl script `pwin2lin.pl`: https://code.google.com/p/pwin2lin/. " simple PERL script to convert Windows PuTTY sessions to Linux PuTTY sessions." - Example of it in use here: https://mdinh.wordpress.com/2013/06/07/migrating-windows-putty-registry-to-linux/. – slm Jun 30 '15 at 12:49
-
3@slm tks for the clarification. @fyodor, Please help by clarifying your question, I may have misunderstood, but I read that your client is on windows and your server is linux, `~/ssh/config` is used by linux clients, the linux server is configured with `/etc/ssh/sshd_config` ? Windows PuTTY doesn not currently support configuration via files, although there is a work-around mentioned in their documentation. See Section 4.28 http://the.earth.li/~sgtatham/putty/0.64/puttydoc.txt – X Tian Jun 30 '15 at 13:16
-
4I'm voting to close this question as off-topic because the question still appears to ask about configuring Windows/PuTTY. – Jeff Schaller May 04 '16 at 19:31
1 Answers
3
Yes you can! But it's another path where the Putty settings are stored. Where exactly the Putty configuration is stored is system dependant, but you can use a PuTTY session name just as if you would use a hostname for ssh to use that with git, at least with the git port for windows. That way you can set the auto-login user or other session features with the PuTTY client, save a session under a name you can remember and use the saved session name as a git host.
Git for Windows can use both, an integrated ssh client and the putty client. I never tried that on linux. There are several guides how to use that, when you search the internet.
ikrabbe
- 2,155
- 12
- 20
-
I've tried this on Windows and it did work. I've managed to access my Amazon Web Services EC2 instance using PuTTY's `plink.exe` and entering only `>plink.exe saved-session-name` on ConEmu. – Terry Jan 25 '21 at 14:12
-
-