

Actual reasonĪfter that, I wondered why the file encoding matters even without CJK letters. I changed the file encoding to ANSI and PuTTYgen worked happily. You would be better to connect the Pi to your router. If you want to use ssh you have to disable ICS. You can have EITHER ICS OR ssh - not BOTH. I always do that because if I save a file with ANSI encoding, the default option, Korean letters do not show up correctly in other editors - Notepad encodes CJK letters with CP949 while other editors expects UTF-8 as the default encoding. Unfortunately this can not be used to provide ssh or VNC access to the Pi. ClientAliveInterval: number of seconds that the server will wait before sending a null packet to the client (to keep the connection alive). Then, I suddenly realised that I selected UTF-8 encoding when saving the key file. Find the ClientAliveInterval option to 60 (in seconds) or add the value if it is not there. I tried to add a newline at the file’s end but still PuTTYgen complains about the file format. So in order to increase the ssh session time out, I modified /etc/ssh/sshdconfig (with AllowTcpForwarding YES, ClientAliveInterval 120 and ServerAliveInterval 300. However, I was able to log back into ssh. I opened it with Notepad again and checked if I made a mistake copy-pasting it, and it was not the reason too. After I installed the firewall and changed the ssh port from 22 to my choice, I kept disconnected from ssh after a few minutes of idle. I thought it might be the problem with the file extension at first, so I changed it to. PuTTYgen spits out an error Troubleshooting You can enable the service by selecting Configuration > Interfaces > ssh. I opened Notepad, copy-pasted the content and then saved it as key.pem as I always did.Īnd tried to load it from PuTTYgen, then I saw this error: How Do I Fix Putty Fatal Error Connection Timed Out Run command (Windows key + R) You can find it by typing ipconfig in the address bar.

It always worked well and I had no problems with using PuTTYgen.īut today I accidently deleted my PPK file and had to regenerate it.įortunately I backed up the key file on Dropbox, and was able to send the content of the key file from my phone to my computer, via messenger.

PuTTY cannot consume this key file as-is.Īs suggested in AWS Docs, PuTTYgen is the preferred tool for converting PEM files to PPK(PuTTY Private Key) files.
