LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-01-2002, 11:00 PM   #1
jphaynes
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/ssh_host_dsa_key.pub 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, 12:40 PM   #2
vfs
Member
 
Registered: Apr 2002
Location: Brazil
Distribution: Slackware
Posts: 184

Rep: Reputation: 30
Hi!

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

HTH...

vfs.
 
Old 05-02-2002, 12:57 PM   #3
jphaynes
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.

www.terrafirmasolutions.com
 
Old 05-03-2002, 10:18 PM   #4
zelgadis
Member
 
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.

http://www-106.ibm.com/developerwork...ry/l-keyc.html
http://www-106.ibm.com/developerwork...brary/l-keyc2/
http://www-106.ibm.com/developerwork...brary/l-keyc3/

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, 11:33 AM   #5
jphaynes
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.
 
  


Reply



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 09:31 PM
SSH connection won't authenticate MaestroC Linux - Security 5 10-16-2005 03:38 AM
Cannot Authenticate Via SSH Sivel Linux - Software 10 07-03-2005 10:13 AM
ssh fails to authenticate some users cochoa Linux - Software 1 12-10-2004 07:43 AM
SSH doesn't accept connections basse- Linux - Software 1 05-23-2004 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:08 PM.

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