The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh keys monitoring tungaw2004 UNIX for Dummies Questions & Answers 0 07-25-2007 03:34 AM
SSH keys new2ss UNIX for Dummies Questions & Answers 1 01-05-2007 09:21 AM
Hot Keys cwtlr Shell Programming and Scripting 8 12-14-2006 01:07 PM
Hot Keys cwtlr UNIX for Dummies Questions & Answers 2 12-01-2006 01:50 PM
arrow keys / special keys raguramtgr UNIX for Dummies Questions & Answers 3 02-20-2004 02:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-10-2004
sysera sysera is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 92
SSH Keys Help

Hello,
I'm wondering if anyone has a step-by-step instruction set for setting up ssh keys? I've gone through many of the manuals online (most seem to be from the same source) and it's a little bit unclear when the documentation is talking about the server versus the client machine. I'm missing something in my translation of the guides.

I'd ideally like to be able to run ssh from one machine to another without being prompted for a password. (Automation in a script to be run every few hours.)

I'm using Redhat 9 as well as MacOSX. My apologies if this belongs under a different section.

Thanks in advance for help/tips anyone can offer.

-Sys
  #2 (permalink)  
Old 08-10-2004
sysera sysera is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 92
Update!

I of course did a little more digging after posting this and found a solution that seems to be working for me. It was another how-to, but a very simple one that was easier for me to follow.

http://www.arches.uga.edu/~pkeck/ssh/

There is a link to the guide I used. Below is the note I made up afterwards for my own future reference. Hopefully this may help someone else running into the same confusion I was:

SSH Key How-To

Client tasks:
ssh-keygen -t dsa
cp id_dsa.pub authorized_keys2

Then copy the authorized_keys2 to file to the .ssh directory of the user you will
be using for ssh access, on the server you will be accessing. For example "/home/sysera/.ssh/authorized_keys2".

Then perform this command on the client to start the ssh-agent on the client machine:
ssh-agent sh -c 'ssh-add < /dev/null && bash'

This will open a new bash shell. From this shell you should be able to access the server machine
without being prompted:
ssh servername

Note: I also have not been prompted for the password after logged out of the current bash session and starting a new one.

I now feel a little silly with this being solved, seemingly so simply, but the entire subject did seem to completely baffle me in the past when I tried to broach it.

Thanks!

-Sys
Sponsored Links
Closed Thread

Bookmarks

Tags
ssh automatic login

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0