Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 11-16-2005, 09:33 PM   #1
Registered: Apr 2005
Distribution: Suse 9.3 | Mandrake 10.0 - 10.1
Posts: 39

Rep: Reputation: 15
Can't login with ssh pub keys

Hi! I currently have an old box that runs Mandriva 10.0. I have a problem login into it remotely using ssh pubkeys. I can login as root but I just can't login with my user account. I've checked all the tuturials referring to it on this site but all the help options won't work. What I can't understand is that I can login to the root account using same pubkeys of my remote user(s). I don't have the same problem with MDK10.1. I've attached my sshd_config file below.

SSHD config
#Port 22
Protocol 2,1
#ListenAddress ::

# HostKey for protocol version 1
HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 3600
#ServerKeyBits 768

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 120
PermitRootLogin yes
#StrictModes yes

RSAAuthentication yes
AuthorizedKeysFile      ~/.ssh/authorized_keys

# rhosts authentication should not be used
#RhostsAuthentication no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

#AFSTokenPassing no

# Kerberos TGT Passing only works with the AFS kaserver
#KerberosTgtPassing no

# Set this to 'yes' to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
#PAMAuthenticationViaKbdInt no

X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
UsePrivilegeSeparation yes
PermitUserEnvironment yes
#Compression yes

#MaxStartups 10
# no default banner path
#Banner /some/path
#VerifyReverseMapping no

# override default of no subsystems
Subsystem       sftp    /usr/lib/ssh/sftp-server
I love if my problem can be solved.
Old 11-16-2005, 11:55 PM   #2
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
make sure your pub keys and config files are readable by all:
Old 11-17-2005, 07:12 PM   #3
Registered: Apr 2005
Distribution: Suse 9.3 | Mandrake 10.0 - 10.1
Posts: 39

Original Poster
Rep: Reputation: 15
I've done that but that didn't help at all. Any more ideas? I've got the same permission (644) for my pub keys
-rw-r--r--  1 root root 2407 Nov 16 09:12 /etc/ssh/sshd_config
-rw-r--r--  1 root root 1345 Nov 16 08:59 /etc/ssh/ssh_config


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Login - Forcing keys! jackster Linux - Security 5 01-25-2005 08:09 AM
ssh works on one machine, but not another eayars Linux - Security 1 06-23-2004 01:24 PM
Can't login using ssh keys linuxboy69 Linux - Software 2 03-19-2004 02:47 PM
SSH: multiple id_rsa and scheme workable? glock27linux Linux - Security 1 11-15-2003 11:58 AM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 03:31 AM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration