Date: Fri, 9 Feb 2024 22:28:00 -0800 From: Walter Parker <walterp@gmail.com> To: Graham Menhennitt <graham@menhennitt.com.au> Cc: freebsd-questions@freebsd.org Subject: Re: putty from Windows to FreeBSD 14.0 says "Server refused our key" Message-ID: <CAMPTd_ALYFC9AMr26K1poahSHGU3D33EpF%2B1LxkZjhM26hV1Xw@mail.gmail.com> In-Reply-To: <296848ac-9121-4b9b-a514-6da8ed2d3af1@menhennitt.com.au> References: <296848ac-9121-4b9b-a514-6da8ed2d3af1@menhennitt.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000001617b406110126e6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I=E2=80=99d have to go look, but the most recent versions of openSSH got ri= d of some of older signature algorithms from the default configuration. FreeBSD picked up those new changes. Depending on which version of 13 you have, it might have an older version of openSSH that still has RSA in the default configuration. Walter The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding. -- Justice Louis D. Brandei= s On Fri, Feb 9, 2024 at 10:04=E2=80=AFPM Graham Menhennitt <graham@menhennit= t.com.au> wrote: > Hello list, > > I have a box that I recently upgraded to FreeBSD 14.0. It all appears to > be working ok except for one thing. When I attempt to use Putty on > Windows to connect to it using SSH, I get an error "Server refused our > key" and it drops back to password authentication. I have not modified > sshd_config from the default. > > I've used this same key for many years from Putty and from other FreeBSD > boxes. It still works successfully from FreeBSD 13 to FreeBSD 14, but > not from Putty to FreeBSD 14. > > In auth.log on the FreeBSD 14 box, I can see that it says > "userauth_pubkey: signature algorithm ssh-rsa not in > PubkeyAcceptedAlgorithms [preauth]". So, I guess that I could fix this > by modifying sshd_config, but I don't understand why it works from > FreeBSD 13 but not Putty. > > Something that may be related (but I'm not sure). When I use password > authentication from Putty, it appears that it doesn't read my .bashrc. > When I login from FreeBSD 13, it does read .bashrc. > > Does anybody have any clues, please. > > Thanks in advance, > > Graham > > > > --0000000000001617b406110126e6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">I=E2=80=99d have to go look, but the most recent versions= of openSSH got rid of some of older signature algorithms from the default = configuration. FreeBSD picked up those new changes. Depending on which vers= ion of 13 you have, it might have an older version of openSSH that still ha= s RSA in the default configuration.</div><div dir=3D"auto"><br></div><div d= ir=3D"auto"><br></div><div dir=3D"auto">Walter<br clear=3D"all"><br clear= =3D"all"><div dir=3D"auto"><div dir=3D"ltr" class=3D"gmail_signature" data-= smartmail=3D"gmail_signature"><span style=3D"font-family:arial,sans-serif;f= ont-size:13px;border-collapse:collapse;color:rgb(136,136,136)">The greatest= dangers to liberty lurk in insidious encroachment by men=C2=A0of zeal, wel= l-meaning but without understanding. =C2=A0 -- Justice Louis D.=C2=A0Brande= is</span></div></div></div><div><br></div><div><br><div class=3D"gmail_quot= e"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Feb 9, 2024 at 10:04=E2=80= =AFPM Graham Menhennitt <<a href=3D"mailto:graham@menhennitt.com.au">gra= ham@menhennitt.com.au</a>> wrote:<br></div><blockquote class=3D"gmail_qu= ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex= ">Hello list,<br> <br> I have a box that I recently upgraded to FreeBSD 14.0. It all appears to <b= r> be working ok except for one thing. When I attempt to use Putty on <br> Windows to connect to it using SSH, I get an error "Server refused our= <br> key" and it drops back to password authentication. I have not modified= <br> sshd_config from the default.<br> <br> I've used this same key for many years from Putty and from other FreeBS= D <br> boxes. It still works successfully from FreeBSD 13 to FreeBSD 14, but <br> not from Putty to FreeBSD 14.<br> <br> In auth.log on the FreeBSD 14 box, I can see that it says <br> "userauth_pubkey: signature algorithm ssh-rsa not in <br> PubkeyAcceptedAlgorithms [preauth]". So, I guess that I could fix this= <br> by modifying sshd_config, but I don't understand why it works from <br> FreeBSD 13 but not Putty.<br> <br> Something that may be related (but I'm not sure). When I use password <= br> authentication from Putty, it appears that it doesn't read my .bashrc. = <br> When I login from FreeBSD 13, it does read .bashrc.<br> <br> Does anybody have any clues, please.<br> <br> Thanks in advance,<br> <br> =C2=A0=C2=A0=C2=A0=C2=A0 Graham<br> <br> <br> <br> </blockquote></div></div> --0000000000001617b406110126e6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMPTd_ALYFC9AMr26K1poahSHGU3D33EpF%2B1LxkZjhM26hV1Xw>