Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 10:44:56 -0000
From:      Mike Dewhirst <Dewhirst.M@UCLES.org.uk>
To:        "'questions@FreeBSD.ORG'" <questions@FreeBSD.ORG>
Subject:   RE: ssh public key authentication (through putty)
Message-ID:  <0B0368CED76DD4118E1200D0B73E9B5D02AFD06C@MAIL1>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1B932.78C4C7B0
Content-Type: text/plain; charset="iso-8859-1"

I'm not sure what the problem was. I've downloaded the latest ver of putty
(0.52) and deleted the config file from ~/.ssh - works a treat now.

Thanks everyone for suggestions and help.

Mike

> -----Original Message-----
> From: Jason Taylor [mailto:jason@kanda.com]
> Sent: 18 February 2002 19:40
> To: Mike Dewhirst
> Cc: 'questions@FreeBSD.ORG'
> Subject: Re: ssh public key authentication (through putty)
> 
> On Mon, 18 Feb 2002, Mike Dewhirst wrote:
> 
> > it was 611, changed it to 600, no result.
> >
> > Some specific questions:
> >
> > 1. what should the name of the keys file be if I'm using 
> OpenSSH 2.3.0?
> 
> > 2. do I need anything else in the "config" file in my .ssh 
> dir, on top of
> > "RSAAuthentication yes" and "PasswordAuthentication yes"?
> 
> I've never needed to put a config file in my ~/.ssh directory, the
> FreeBSD/OpenSSH defaults have always been fine.
> 
> > 3. I am specifying a user under putty's 
> Connection-->Auto-login username
> > option, is this the right thing to do?
> 
> Yes, putty needs to tell the remote system who you are logging in as.
> 
> > 4. Does it matter that the client is behind a firewall?
> 
> If you can connect through putty using SSH with passwords then the
> firewall will not cause any problems.
> 
> > I've been battling with this for about a month now, any 
> help will be greatly
> > appreciated.
> 
> These are the steps I just took to get Open SSH (OpenSSH_2.9 FreeBSD
> localisations 20011202, SSH protocols 1.5/2.0, OpenSSL 0x0090601f)
> Working with putty.  I downloaded the latest release of putty from the
> putty website. (0.52 - 
http://www.chiark.greenend.org.uk/~sgtatham/putty/)

1. Create a key using puttygen
 A) Set to SSH2 DSA (1024 bit)
 B) Hit Generate
 C) Enter a passphrasse
 D) Select & Copy all text from "Public key for pasting into OpenSSH
authorized_keys2 file"
 E) Paste into ~/.ssh/authorized_keys2 (being carefull to check line
wrapping)
 F) Save private / public keys onto the local windows PC.

2. Configure Putty

  Session->Hostname = remote host
  Session->Protocol = SSH
  Connection->Auto-login username = YOUR REMOTE USERNAME
  Connection->SSH->Preferred SSH Protocol Version = 2
  Connection->SSH->Auth->Private key file for authentication = YOUR PRIVATE
KEY

Then hit open.  This works fine from here.

Jason.




=**********************************************************

If you are not the intended recipient, employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept legal responsibility for the contents of this message.  Any views or opinions presented are solely those of the author and do not necessarily represent those of the UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that this email is virus free.

**********************************************************=


------_=_NextPart_001_01C1B932.78C4C7B0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 5.5.2653.12">
<TITLE>RE: ssh public key authentication (through putty)</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I'm not sure what the problem was. I've downloaded the la=
test ver of putty (0.52) and deleted the config file from ~/.ssh - works a =
treat now.</FONT></P>

<P><FONT SIZE=3D2>Thanks everyone for suggestions and help.</FONT>
</P>

<P><FONT SIZE=3D2>Mike</FONT>
</P>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Jason Taylor [<A HREF=3D"mailto:jason@kanda.c=
om">mailto:jason@kanda.com</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: 18 February 2002 19:40</FONT>
<BR><FONT SIZE=3D2>&gt; To: Mike Dewhirst</FONT>
<BR><FONT SIZE=3D2>&gt; Cc: 'questions@FreeBSD.ORG'</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: Re: ssh public key authentication (through=
 putty)</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; On Mon, 18 Feb 2002, Mike Dewhirst wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; it was 611, changed it to 600, no result.</FON=
T>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Some specific questions:</FONT>
<BR><FONT SIZE=3D2>&gt; &gt;</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 1. what should the name of the keys file be if=
 I'm using </FONT>
<BR><FONT SIZE=3D2>&gt; OpenSSH 2.3.0?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 2. do I need anything else in the &quot;config=
&quot; file in my .ssh </FONT>
<BR><FONT SIZE=3D2>&gt; dir, on top of</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; &quot;RSAAuthentication yes&quot; and &quot;Pa=
sswordAuthentication yes&quot;?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I've never needed to put a config file in my ~/.ssh=
 directory, the</FONT>
<BR><FONT SIZE=3D2>&gt; FreeBSD/OpenSSH defaults have always been fine.</FO=
NT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 3. I am specifying a user under putty's </FONT>
<BR><FONT SIZE=3D2>&gt; Connection--&gt;Auto-login username</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; option, is this the right thing to do?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Yes, putty needs to tell the remote system who you =
are logging in as.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 4. Does it matter that the client is behind a =
firewall?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; If you can connect through putty using SSH with pas=
swords then the</FONT>
<BR><FONT SIZE=3D2>&gt; firewall will not cause any problems.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; I've been battling with this for about a month=
 now, any </FONT>
<BR><FONT SIZE=3D2>&gt; help will be greatly</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; appreciated.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; These are the steps I just took to get Open SSH (Op=
enSSH_2.9 FreeBSD</FONT>
<BR><FONT SIZE=3D2>&gt; localisations 20011202, SSH protocols 1.5/2.0, Open=
SSL 0x0090601f)</FONT>
<BR><FONT SIZE=3D2>&gt; Working with putty.&nbsp; I downloaded the latest r=
elease of putty from the</FONT>
<BR><FONT SIZE=3D2>&gt; putty website. (0.52 - </FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.chiark.greenend.org.uk/~sgtatham/p=
utty/" TARGET=3D"_blank">http://www.chiark.greenend.org.uk/~sgtatham/putty/=
</A>)</FONT>
</P>

<P><FONT SIZE=3D2>1. Create a key using puttygen</FONT>
<BR><FONT SIZE=3D2>&nbsp;A) Set to SSH2 DSA (1024 bit)</FONT>
<BR><FONT SIZE=3D2>&nbsp;B) Hit Generate</FONT>
<BR><FONT SIZE=3D2>&nbsp;C) Enter a passphrasse</FONT>
<BR><FONT SIZE=3D2>&nbsp;D) Select &amp; Copy all text from &quot;Public ke=
y for pasting into OpenSSH authorized_keys2 file&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;E) Paste into ~/.ssh/authorized_keys2 (being caref=
ull to check line wrapping)</FONT>
<BR><FONT SIZE=3D2>&nbsp;F) Save private / public keys onto the local windo=
ws PC.</FONT>
</P>

<P><FONT SIZE=3D2>2. Configure Putty</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp; Session-&gt;Hostname =3D remote host</FONT>
<BR><FONT SIZE=3D2>&nbsp; Session-&gt;Protocol =3D SSH</FONT>
<BR><FONT SIZE=3D2>&nbsp; Connection-&gt;Auto-login username =3D YOUR REMOT=
E USERNAME</FONT>
<BR><FONT SIZE=3D2>&nbsp; Connection-&gt;SSH-&gt;Preferred SSH Protocol Ver=
sion =3D 2</FONT>
<BR><FONT SIZE=3D2>&nbsp; Connection-&gt;SSH-&gt;Auth-&gt;Private key file =
for authentication =3D YOUR PRIVATE KEY</FONT>
</P>

<P><FONT SIZE=3D2>Then hit open.&nbsp; This works fine from here.</FONT>
</P>

<P><FONT SIZE=3D2>Jason.</FONT>
</P>
<BR>

<CODE><FONT SIZE=3D3><BR>
<BR>
=3D**********************************************************<BR>
<BR>
If you are not the intended recipient, employee or agent responsible for de=
livering the message to the intended recipient, you are hereby notified tha=
t any dissemination or copying of this communication and its attachments is=
 strictly prohibited.<BR>
<BR>
If you have received this communication and its attachments in error, pleas=
e return the original message and attachments to the sender using the reply=
 facility on e-mail.<BR>
<BR>
Internet communications are not secure and therefore the UCLES Group does n=
ot accept legal responsibility for the contents of this message.  Any views=
 or opinions presented are solely those of the author and do not necessaril=
y represent those of the UCLES Group unless otherwise specifically stated.<=
BR>
<BR>
This footnote also confirms that this email message has been swept by<BR>
MIMEsweeper for the presence of computer viruses although this does not gua=
rantee that this email is virus free.<BR>
<BR>
**********************************************************=3D<BR>
</FONT></CODE>
</BODY>
</HTML>
------_=_NextPart_001_01C1B932.78C4C7B0--

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?0B0368CED76DD4118E1200D0B73E9B5D02AFD06C>