Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Nov 05, 2009 1:33 am 
Offline
Senior Newbie

Joined: Sat Oct 14, 2006 6:09 pm
Posts: 9
Hello,

I've done a bit of searching and I cannot determine the cause of the following error:

Code:
Nov  5 00:31:05 www sshd[1707]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=pool-72-91-85-94.tampfl.fios.verizon.net  user=r
oot
Nov  5 00:31:07 www sshd[1705]: error: PAM: Authentication failure for root from pool-72-91-85-94.tampfl.fios.verizon.net


I have searched in the SSHD and PAM config files and I cannot determine what is preventing me from logging in to my linode server besides using the lish console. It does not matter which user I attempt to login with as the results are the same. Does anyone how I can go about resolving this? Thank you for your time.


Top
   
 Post subject:
PostPosted: Thu Nov 05, 2009 1:50 am 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Try ssh in verbose mode, and see what errors turn up:
Code:
ssh -v hostname


Is this a default configuration, or have you recently edited some files (e.g. sshd_config) ? Without wanting to state the obvious, are you sure you're allowing (or even want to allow) root to log in directly via ssh ?


Top
   
 Post subject:
PostPosted: Thu Nov 05, 2009 1:59 am 
Offline
Senior Newbie

Joined: Sat Oct 14, 2006 6:09 pm
Posts: 9
Thank you for your response.

Here is the output:

Code:
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to avella.name [66.160.141.77] port 22.
debug1: Connection established.
debug1: identity file /Users/tavella/.ssh/identity type -1
debug1: identity file /Users/tavella/.ssh/id_rsa type -1
debug1: identity file /Users/tavella/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_5.1p1 Debian-8
debug1: match: OpenSSH_5.1p1 Debian-8 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'avella.name' is known and matches the RSA host key.
debug1: Found key in /Users/tavella/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/tavella/.ssh/identity
debug1: Trying private key: /Users/tavella/.ssh/id_rsa
debug1: Trying private key: /Users/tavella/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive


Am I missing the ssh keys or something to that effect on this computer? I've been using Windows and Putty until recently as I purchased a Mac and I'm using terminal to try and ssh.

I also have my hosts.allow and hosts.deny file pretty well secured. I'm sure someone in my area could possibly try to obtain access but the root access is only open while I try and remove a few gigs of pictures using scp.


Top
   
 Post subject:
PostPosted: Thu Nov 05, 2009 2:16 am 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Yes, it loooks like your local ssh client cannot find any usable keys on your mac. Do you have them in a directory named .ssh/ within your home directory ?

The directory and private keys should be read/writable only by yourself, incidentally, if you're about to copy them in...


Top
   
 Post subject:
PostPosted: Thu Nov 05, 2009 2:18 am 
Offline
Senior Newbie

Joined: Sat Oct 14, 2006 6:09 pm
Posts: 9
I've never used the keys before since I guess Putty automated the process. The keys are not in the home directories on my linode box. I'll research key generation and get them on my Mac one way or another. Thank you for your help.


Top
   
 Post subject:
PostPosted: Thu Nov 05, 2009 3:02 am 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Odd. Looks like ssh can't find the key on your mac, and isn't trying password auth. It sounds like you haven't used keys before (if you haven't had to generate them, which would have required a bit of work if using putty on windows), and password authentication is disabled on your linode (if it is skipping this and going straight to keyboard-interactive).

How were you wanting to log in ?

You may also want to paste your sshd_config.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group