Article View: alt.privacy.anon-server
Article #268951Re: Failed SSH Logins - Resolved - Not
From: Red John
Date: Thu, 10 Jul 2014 23:02
Date: Thu, 10 Jul 2014 23:02
64 lines
3525 bytes
3525 bytes
On 7/10/2014 2:30 PM, Red John wrote:> 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) > I may have spoken too soon. I added another key pair for a second user and now I'm getting the same server error message that I was running into previously. My mix key pair login no longer works. I think what might help me out is to get a copy of someone's working sshd_config file... of course without any proprietary information removed. How does one manage this line when you have more than one user with authorized_keys? AuthorizedKeysFile %h/.ssh/authorized_keys If my 1st public key is in user1/.ssh/authorized_keys and a different public key is in user2/.ssh/authorized_keys how do I manage the AuthorizedKeysFile line in sshd_config? So close but yet so far.
Technical Details
Message-ID:
<20140710230239.38950EAB12@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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!81.171.88.16.MISMATCH!hq-usenetpeers!hq-usenetpeers.eweka.nl!mail2news.mixmin.net!not-for-mailReferences:
<slrnlrtpdp.a1l.admin@snorky.mixmin.net> <fdc592689c297f832c6076ab72a773eb@isis.cpunk.us> <20140710213002.339ABEAB12@snorky.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <20140710230239.38950EAB12@snorky.mixmin.net> Subject: Re: Failed SSH Logins - Resolved - Not Date: Thu, 10 Jul 2014 23:02:39 +0000 From: Red John <redjohn@nym.mixmin.net> References: <slrnlrtpdp.a1l.admin@snorky.mixmin.net> <fdc592689c297f832c6076ab72a773eb@isis.cpunk.us> <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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!81.171.88.16.MISMATCH!hq-usenetpeers!hq-usenetpeers.eweka.nl!mail2news.mixmin.net!not-for-mail Newsgroups: alt.privacy.anon-server Lines: 65 Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net X-Received-Bytes: 2998 X-Received-Body-CRC: 206558663