Date: Tue, 16 Oct 2001 08:56:40 +0700 From: Roger Merritt <mcrogerm@stjohn.ac.th> To: cjclark@alum.mit.edu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Can't get PuTTY to connect Message-ID: <3.0.6.32.20011016085640.007d34f0@stjohn.stjohn.ac.th> In-Reply-To: <20011015131543.A293@blossom.cjclark.org> References: <3.0.6.32.20011015182409.007b6960@stjohn.stjohn.ac.th> <3.0.6.32.20011015170134.007b0100@stjohn.stjohn.ac.th> <3.0.6.32.20011015170134.007b0100@stjohn.stjohn.ac.th> <20011015033737.Q309@blossom.cjclark.org> <3.0.6.32.20011015182409.007b6960@stjohn.stjohn.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
At 01:15 PM 10/15/01 -0700, you wrote: >On Mon, Oct 15, 2001 at 06:24:09PM +0700, Roger Merritt wrote: > >[snip] > >> Turned out sshd wasn't running. I had to configure it and create keyfiles >> in /etc/ssh. I hadn't checked before because it was running by default >> under 4.3-STABLE and I forgot that 4.4-STABLE has upgraded to OpenSSH 2.9 >> so sshd is not started by default. > >sshd(8) runs by default in the same manner in 4.4-STABLE. > ??? Two things. /etc/defaults/rc.conf has 'sshd_enable="NO", which has to be changed in /etc/rc.conf, and the daemon won't run unless you have the appropriate key files in /etc/ssh, which I didn't. >[snip] > >> Right. It turns out it's not a FreeBSD issue at all (unless running PuTTY >> is so much a part of running FreeBSD that it's become part of the overall >> system). I'm now able to connect, but PuTTY reports it can't load my public >> key. > >If you are logging FROM the PuTTY machine INTO the FreeBSD machine, >PuTTY needs a private key, not a public key. Yes, that's why I said it's not a FreeBSD issue. For some reason PuTTY can't read the public key file I generated with ssh-keygen on my FreeBSD box. At the same time, the key generated by puttygen.exe isn't accepted by sshd. Examining the files, the FreeBSD-generated key is all printable characters, while the file generated by puttygen.exe is all non-printable. I don't understand what's going on and have sent a query to the PuTTY web site, but it seems like this should be a common problem. Do most people run PuTTY in telnet mode? >-- >Crist J. Clark | cjclark@alum.mit.edu > | cjclark@jhu.edu >http://people.freebsd.org/~cjc/ | cjc@freebsd.org > -- Roger To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.6.32.20011016085640.007d34f0>