![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
|
||||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Tags |
| ssh automatic login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|