Article View: alt.privacy.anon-server
Article #268936Re: Failed SSH Logins
From: Red John
Date: Thu, 10 Jul 2014 03:29
Date: Thu, 10 Jul 2014 03:29
34 lines
2303 bytes
2303 bytes
I loaded winscp and did Tools | Run PuttyGen and generated a public and private key. I saved these two files to my Laptop computer. I then copied my public key to my VPS server in a newly created file called /.ssh/authorized_keys. I then did /etc/init.d/ssh restart and then tried to log into my VPS from my laptop. I was prompted for a password, which my understanding was I should not have had to do. What do I specifically need to do in Putty to get this to work? Do I have to add my private key to Putty's configuration or is there something else that needs to be done with the sshd.conf file? Please note when my VPS was created I have many ssh keys that were created in etc/ssh When I restarted ssh I get this error message: Jul 9 16:49:35 redjohn sshd[30582]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key So when I restart ssh it appears that it is looking for keys in ssh_host_ecdsa_key instead of /.ssh/authorized_keys. I did try to follow the instructions that were on digitalocean's website, but could not login to a user that I know worked previously with a password login. So I deleted the authorized_keys file and did another ssh restart and everything was okay again. If/when I get this working I am going write up my own FAQ for other users who may have the same issue as me.
Technical Details
Message-ID:
<20140710032922.1A736EAB2A@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!feeder.erje.net!eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!hq-usenetpeers!hq-usenetpeers.eweka.nl!mail2news.mixmin.net!not-for-mailReferences:
<20140708230811.7FE79EAC24@snorky.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <20140710032922.1A736EAB2A@snorky.mixmin.net> Subject: Re: Failed SSH Logins Date: Thu, 10 Jul 2014 03:29:22 +0000 From: Red John <redjohn@nym.mixmin.net> References: <20140708230811.7FE79EAC24@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!feeder.erje.net!eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!hq-usenetpeers!hq-usenetpeers.eweka.nl!mail2news.mixmin.net!not-for-mail Newsgroups: alt.privacy.anon-server Lines: 35 Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net X-Received-Body-CRC: 2894701319 X-Received-Bytes: 1852