Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-02-2002, 12:00 AM   #1
LQ Newbie
Registered: Apr 2002
Posts: 5

Rep: Reputation: 0
Question Setting up SSH to accept authenticate hosts without passwords

I'm having trouble getting ssh to accept authenticated hosts without having to enter a password. Have any of you been able to do this?

Here's what I've done so far:
- copied my key from /etc/ssh/ on machine one into the file /root/.ssh/authorized_keys on machine two. When I try to connect from machine one to machine two, it stills asks me for a password (which I don't want).

Thanks in advance for your help.

J. Haynes
Bozeman, Montana
Old 05-02-2002, 01:40 PM   #2
Registered: Apr 2002
Location: Brazil
Distribution: Slackware
Posts: 184

Rep: Reputation: 30

I dunno SSH, but since you're already lost... :-)

Try removing the passwords of the hosts you want to connect to with:

passwd -d username


Old 05-02-2002, 01:57 PM   #3
LQ Newbie
Registered: Apr 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Authenticating SSH connections without passwords

Actually, I just figured this out. You have to create new RSA keys on the host machine, and add the public key to the file called 'authorized_keys2' on the remote machine.

Then you can use ssh to run commands on the remote machine without having to enter a password. Which is really cool because you can then run commands like df to make sure hard drives on remote machines are not filling up.
Old 05-03-2002, 11:18 PM   #4
Registered: Apr 2002
Location: Venezuela
Distribution: slackware 8.0
Posts: 67

Rep: Reputation: 15
See this series of 3 articles. It's very complete and a bit complicated but in the second article explain what you want to do.

I have checked the urls and they are up.
But if you have trouble with them email me and i send to you.
Old 05-05-2002, 12:33 PM   #5
LQ Newbie
Registered: Apr 2002
Posts: 5

Original Poster
Rep: Reputation: 0
SSH Articles

Thanks! These look really good and the writer has written some really good artles about reiserfs and ext3 as well.


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
FC4 Slow to authenticate with SSH dashnaam Fedora 6 02-21-2006 10:31 PM
SSH connection won't authenticate MaestroC Linux - Security 5 10-16-2005 04:38 AM
Cannot Authenticate Via SSH Sivel Linux - Software 10 07-03-2005 11:13 AM
ssh fails to authenticate some users cochoa Linux - Software 1 12-10-2004 08:43 AM
SSH doesn't accept connections basse- Linux - Software 1 05-23-2004 08:33 AM

All times are GMT -5. The time now is 10:25 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