Article View: alt.privacy.anon-server
Article #268946Re: Failed SSH Logins
From: Zax
Date: Thu, 10 Jul 2014 19:12
Date: Thu, 10 Jul 2014 19:12
62 lines
3953 bytes
3953 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Thu, 10 Jul 2014 19:42:14 +0100 (BST), Red John wrote in
Message-Id: <20140710184214.3D672EAB1F@snorky.mixmin.net>:
> elvis, I created both keys using PuTTygen. I copied my public
> key to the VPS server's authorized_keys file in
> /home/mix/.ssh/authorized_keys.
Check the permissions on this file and the directory. They need to be
read/write for only the owner. SSH is very strict about this.
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
> I then pointed Putty to my Private key which resides on my
> Laptop. I then tried to login to my VPS via Putty from my Laptop
> and received the server error message. One thing I've come
> across in researching this, do I have to rename my
> authorized_keys file to authorized_keys2 ?
In your Putty config, under Connection > Data, insert the Auto-login
Username. Sounds like you've already done the Connection > SSH > Auth
and told it where to find the key file.
>
> Also when I copied my public key from Notepad to Nano even
> though the contents were copied on one line in Notepad, it was
> pasted into Nano on multiple lines. I carefully got rid of the
> line breaks in Nano without deleting any of the public key's
> contents until everything was on one line. I then saved the
> file. Was this necessary?
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJTvuW5AAoJEIBmv8lxNqHoykgP/3zhc2bfJbcILpJuewTanBsa
VY7MsDUgWeUHMr8J98OKd3VaIyD9YWtCuBCkCvSy/QmbF0b/yC480PaBsbpgEZs5
9X5XwRYmaAQYvtyyPDTul9DZTWBLhNFxfASwzSVoHBB/F1nJZHXWEJgJe4mnsV1I
mAQxCnsbcHlOhMkvIr2sT2wduht1INMDaVN/XEiURPrvXw3mBsqEYfH9oAaZgNld
vt8LvNI9Xv0oWuiWUGOODYXTKuRVGMQhZMHsHLEjEK9o3meX17E0zTdPfpOlyZJk
d928K72s1nDnRisH3KfDoPKVsDF36bnl+AQnTjmhkMjafeB0PSAMtLH+Ob1gmhW5
CWDjEZXo8G4d2xRwYXsoB3Jr9w1BFcTbC9R+vapHSn+hOegfLiTh0X2EWlHPh73e
8SYDfMmRTwG8NuSnMxGHZhXfjSDZksvUI8eVc7Xx+hgi+aDy0F2o8XzqOcGY8P+X
QS9Vp4q65TP4hRe5N/c9bFyIsndXTFkh0oOJZ6kwRKJzG0PL4tgyOzpu149H06nQ
QIbPP3l3CRo+Ym3s2X9lp5jLkSAIFZmfJnwRHfu2yXYi4CCHjxUeJzZL+zYnWKtt
GNs/5KDheZKuYst9jab6BQyJLsWeST+Z6EBZl4FPEKTOPQhoTyTEF+9dOLIavQKj
71IPghOUXQxdr1fSKbfA
=rOPk
-----END PGP SIGNATURE-----
--
pub 1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
sub 4096R/4ABF07E3 2012-02-11 [expires: 2013-02-10]
Technical Details
Message-ID:
<slrnlrtpdp.a1l.admin@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!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!rt.uk.eu.org!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mailReferences:
<20140708230811.7FE79EAC24@snorky.mixmin.net> <20140710024009.A92F3EAB23@snorky.mixmin.net> <7qvrr9pkvhb7fiq8bod5stqtprf9tl7os1@news.stray.cat.edu> <20140710070932.2B090EAB28@snorky.mixmin.net> <slrnlrsgd0.3jq.elvis-85503@notatla.org.uk> <20140710184214.3D672EAB1F@snorky.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnlrtpdp.a1l.admin@snorky.mixmin.net> Subject: Re: Failed SSH Logins Date: Thu, 10 Jul 2014 19:12:57 +0000 From: Zax <admin@mixmin.net> References: <20140708230811.7FE79EAC24@snorky.mixmin.net> <20140710024009.A92F3EAB23@snorky.mixmin.net> <7qvrr9pkvhb7fiq8bod5stqtprf9tl7os1@news.stray.cat.edu> <20140710070932.2B090EAB28@snorky.mixmin.net> <slrnlrsgd0.3jq.elvis-85503@notatla.org.uk> <20140710184214.3D672EAB1F@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!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!rt.uk.eu.org!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail Newsgroups: alt.privacy.anon-server Organization: Mixmin Injection-Date: Thu, 10 Jul 2014 19:12:57 +0000 (UTC) Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4"; logging-data="16597"; mail-complaints-to="abuse@mixmin.net" User-Agent: slrn/pre1.0.2-18 (Linux) Lines: 61