LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-18-2003, 05:09 PM   #1
shaggz
Member
 
Registered: Dec 2002
Location: FuNkYToWN
Distribution: SuSe, Gentoo, Fedora
Posts: 64

Rep: Reputation: 15
SSh Keys


I have a rather odd question..

I have a host box that I want to generate an SSH key here on my client box to put in /root/.ssh/authorized_keys2 in order for me to simply ssh -1 -l root hostmachine


On my local box I don't have any identity.pub file in .ssh so when I run ssh-keygen -l I get file does not exist. I created it yet then it said its not a public key file.


I'm using RH8.0 and have successfully done this many time on other machines however am stumped on this one. Is there something different I need to do w/RH8?


Thanks
 
Old 02-18-2003, 06:44 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
identity.pub is the public keyfile for SSH version 1. It is more perforated than an average honeycomb. I would suggest disabling it on the server side ( /etc/ssh/sshd_config ) for starters.

Now, we're left with ssh version 2. You can either generate RSA keys (~/.ssh/id_rsa and ~/.ssh/id_rsa.pub ) or DSA keys( in similarly named files ). Use ssh-keygen -trsa ( or -tdsa ) respectively on the ssh client side.

append your public key files to ~/.ssh/authorized_keys on the SERVER side. You should be good to go.
 
Old 02-19-2003, 09:09 PM   #3
pjcp64
Member
 
Registered: Dec 2002
Location: Omaha, NE
Distribution: Ubuntu Server and SuSE
Posts: 69

Rep: Reputation: 15
Try this article; its well written.
http://www-106.ibm.com/developerwork...ry/l-keyc.html
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh keys exodist Linux - Networking 3 02-16-2005 10:16 AM
SSH keys alon005 Linux - Security 5 10-14-2004 03:39 AM
ssh keys merchtemeagle Linux - Newbie 4 10-12-2004 12:12 AM
ssh keys Lucasite Linux - Security 2 03-11-2004 12:43 PM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:25 AM.

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