🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #268950

Re: Failed SSH Logins - Resolved

#268950
From: Red John
Date: Thu, 10 Jul 2014 21:30
42 lines
2600 bytes
On 7/10/2014 1:05 PM, John Kennerson wrote:> <snip>
>> It was necessary.  SSH expects to find the key without line
breaks in
>> it.  Generally speaking Notepad is pretty evil when it comes
to changing
>> things its not been asked to change.  Wordpad is better and
comes as
>> standard on most Windows flavors.  Best of all for your
purpose would be
>> pscp which is part of Putty.  It copies files between
machines without
>> risk of changing them.
>
>   I had this problem using Notepad, it somehow hosed the record.  I
> think that one uses x0D and the other x0D0A for CR.  When I used
> Wordpad, it put it out correctly.
>

Success -- I created a new key pair and copied the public key
directly from Puttygen's window into Nano using Nano -w
authorized_keys and it was automatically pasted on one line. I
logged in via Putty and was prompted for the passhphrase that
was assigned to my private key. After entering my passphrase, I
was then logged in as the non root user.

I am now going to create a new key for a second user and get
this configured. I will then turn off PAM authentication in
/etc/sshd_config and confirm that I cannot log in using my user
password. I already have root ssh login turned off.

Thanks for providing the tip to copy the contents of the public
key right out of PuTTygen window.

Here's the output from my auth.log file for this login attempt:

Jul 10 14:00:58 redjohn sshd[3314]: Accepted publickey for mix
from xx.xx.xx.xx
                             port 55726 ssh2
Jul 10 14:00:58 redjohn sshd[3314]: pam_unix(sshd:session):
session opened for u
                                ser mix by (uid=0)
Technical Details
Message-ID: <20140710213002.339ABEAB12@snorky.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!rt.uk.eu.org!news.mixmin.net!hq-usenetpeers!hq-usenetpeers.eweka.nl!mail2news.mixmin.net!not-for-mail
References: <slrnlrtpdp.a1l.admin@snorky.mixmin.net> <fdc592689c297f832c6076ab72a773eb@isis.cpunk.us>

Show Full Headers
Complete Article Headers
Message-ID: <20140710213002.339ABEAB12@snorky.mixmin.net>
Subject: Re: Failed SSH Logins - Resolved
Date: Thu, 10 Jul 2014 21:30:02 +0000
From: Red John <redjohn@nym.mixmin.net>
References: <slrnlrtpdp.a1l.admin@snorky.mixmin.net> <fdc592689c297f832c6076ab72a773eb@isis.cpunk.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!rt.uk.eu.org!news.mixmin.net!hq-usenetpeers!hq-usenetpeers.eweka.nl!mail2news.mixmin.net!not-for-mail
Newsgroups: alt.privacy.anon-server
Lines: 43
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
X-Received-Bytes: 2140
X-Received-Body-CRC: 3423265996