Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[pavel@web02 .ssh]$ ssh -vvv 10.1.0.141
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
...
debug3: Not a RSA1 key file /home/pavel/.ssh/id_rsa.
...
debug3: Not a RSA1 key file /home/pavel/.ssh/id_dsa.
...
debug1: identity file /home/pavel/.ssh/id_dsa type 2
...
debug1: Offering public key: /home/pavel/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
...
debug1: Offering public key: /home/pavel/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
...
debug1: Next authentication method: password
If I'm reading this correctly, you have used ssh-keygen to create both a type 2 RSA key pair and a DSA key pair.
On the sshd server side, let's see the output from:
ls -ld ~
ls -ld ~/.ssh
ls -l ~/.ssh
When StrictModes are enabled, (user created) permissions problems at the ~, ~/.ssh, and authorized_keys levels are common.
[pavel@x ~]$ ls -ld ~
drwxr-xr-x 10 pavel pavel 4096 Jun 1 16:18 /home/pavel
[pavel@x ~]$ ls -ld ~/.ssh
drwx------ 2 pavel pavel 4096 Jun 1 18:32 /home/pavel/.ssh
[pavel@x ~]$ ls -l ~/.ssh
total 16
-rw------- 1 pavel pavel 1208 Jun 1 19:28 authorized_keys
-rw------- 1 pavel pavel 606 Jun 1 18:08 authorized_keys2
-rw-r--r-- 1 pavel pavel 398 Jun 1 16:38 known_hosts
Your permissions and ownership on the server side look fine. Check the client side as well to be sure you haven't given group write permissions to ~ or ~/.ssh, and that your private key is only readable by you.
If you don't find a permissions problem there, outline the exact steps you have gone through. (Instead of pointing to a howto, post the exact commands you're running.)
If you change the option to "NO", as he suggests, you'll no longer can login to your machine !!!
Bad taste KIDDING !!!!
The goal of this thread is to achieve password-less authentication via public-key authentication. So there is no problem in disabling password authentication if you have set up your system correctly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.