From owner-freebsd-questions Mon Oct 15 19:31: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id 4286F37B40C for ; Mon, 15 Oct 2001 19:31:04 -0700 (PDT) Received: from blossom.cjclark.org (dialup-209.244.104.182.Dial1.SanJose1.Level3.net [209.244.104.182]) by pintail.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id TAA06679; Mon, 15 Oct 2001 19:30:32 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id f9G2UAF02065; Mon, 15 Oct 2001 19:30:10 -0700 (PDT) (envelope-from cjc) Date: Mon, 15 Oct 2001 19:29:46 -0700 From: "Crist J. Clark" To: Roger Merritt Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Can't get PuTTY to connect Message-ID: <20011015192946.D293@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu 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> <20011015131543.A293@blossom.cjclark.org> <3.0.6.32.20011016085640.007d34f0@stjohn.stjohn.ac.th> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3.0.6.32.20011016085640.007d34f0@stjohn.stjohn.ac.th>; from mcrogerm@stjohn.ac.th on Tue, Oct 16, 2001 at 08:56:40AM +0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 16, 2001 at 08:56:40AM +0700, Roger Merritt wrote: > 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. That line has been in /etc/defaults/rc.conf since Feburary 24, 2000. If the keys do not exist in /etc/ssh, the rc.network script will create them. > >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 ^^^^^^^^^^^^^^^ If you are logging in FROM PuTTY, you need the _private_ key on that machine. > 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, The public key is, the private key is not. > 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? Nope. A lot of people just use passwords though. I personally never used RSA keys with PuTTY, but I did use them with TeraTerm and the SSH extensions to it. No problems between TeraTerm SSH and OpenSSH. I prefered TeraTerm SSH at the time since it did X11 forwarding. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message