LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   RSA Keys for SSH (https://www.linuxquestions.org/questions/linux-general-1/rsa-keys-for-ssh-338835/)

XaViaR 06-30-2005 03:45 PM

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

XaViaR 06-30-2005 03:46 PM

P.S.
Why and how is it more secure?

Thanks!

TruckStuff 07-01-2005 09:17 AM

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.
:rolleyes: 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.

setenv02 07-01-2005 11:31 AM

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

XaViaR 07-02-2005 09:15 AM

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!


All times are GMT -5. The time now is 06:12 AM.