Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5273

Troubleshooting • Re: 2000 posts on problems with Pi, ssh & putty still no answer

$
0
0
I just ran into this problem with putty. Since I was trying to automate it for use in a menu, I used the following putty command line:

Code:

putty -geometry 132x54 -fg black -bg white -ssh -l remote-user -i /home/local-user/.ssh/remote-keyname.ppk
You may want to change the geometry and foreground/background colors, as well as properly setting the remote-user and local-user. I found adding the '-fn' switch to set the font-name (not shown here) userful, if that's of interest to you.

If you prefer configuring the connection via the gui, someone else can help you with that, as I'm poorly versed on it.

The ppk that I used was created from a key generated with ssh-keygen. I did it on the remote system and copied to local

Code:

ssh-keygen -C remote-keyname -f /home/remote-user/.ssh/remote-keyname# Install putty-tools if neededputtygen /home/remote-user/.ssh/remote-keyname -O private -o /home/remote-user/.ssh/remote-keyname.ppk
NOTE: I didn't try using puttygen directly to create a ppk, but since the remote end is using the SSH server, it seems best to use standard SSH keys and derive the putty private key.

Statistics: Posted by bls — Fri Jan 31, 2025 10:56 pm



Viewing all articles
Browse latest Browse all 5273

Trending Articles