LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-30-2005, 03:45 PM   #1
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 30
RSA Keys for SSH


Hello,

I heard that using RSA keys instead of password authentication is more secure for ssh. Is this try? If so, then can you please give me some instructions on how to set it up.

Thanks!

-X
 
Old 06-30-2005, 03:46 PM   #2
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Original Poster
Rep: Reputation: 30
P.S.
Why and how is it more secure?

Thanks!
 
Old 07-01-2005, 09:17 AM   #3
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Re: RSA Keys for SSH

Quote:
Originally posted by XaViaR
I heard that using RSA keys instead of password authentication is more secure for ssh. Is this try?
Yes.
Quote:
Originally posted by XaViaR
If so, then can you please give me some instructions on how to set it up.
http://www.google.com/search?q=publi...authentication
Quote:
Originally posted by XaViaR
Why and how is it more secure?
Basic version: it comes down to length of password. An RSA key provides a *much* longer and more random password than anything a person would ordinarily remember. Long, random passwords are much more difficult to crack than short, dictionary based ones.
 
Old 07-01-2005, 11:31 AM   #4
setenv02
Member
 
Registered: Apr 2005
Location: Chicago,IL
Distribution: redhat 9
Posts: 32

Rep: Reputation: 15
yo

You will be able to use sshkeygen to set up your rsa key or dsa key. This can make random key sets with a specified amount of bits that you want the key to be. Do not make the key too big or else the ssh daemon will fail to start up. I would just create an extra key with a little larger amount of bits then the regular rsa key. Good luck man I hope this helps you
 
Old 07-02-2005, 09:15 AM   #5
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Original Poster
Rep: Reputation: 30
thank you for your help. i have rsa keys working on my linux box. my next question is how do i set it up to only do rsa key auth? below are my configs:

# To disable tunneled clear text passwords, change to no here!
RSAAuthentication yes
#PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

PasswordAuthentication no
PermitEmptyPasswords no

thanks!
 
  


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
Konqueror-RSA Keys XaViaR Linux - General 5 12-03-2006 05:28 AM
SSH RSA Auth lil_drummaboy Linux - Networking 2 11-27-2005 06:42 PM
SSH Forcing users to use RSA keys XaViaR Linux - Security 8 07-07-2005 12:42 AM
Where to install RSA keys? KMorley Linux - Newbie 1 02-24-2005 02:33 PM
Mulitiple RSA Keys Reformed Linux - Software 3 12-13-2003 02:02 PM


All times are GMT -5. The time now is 06:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration