KIAaze
January 22nd, 2009, 05:24 AM
Can an ssh password be recovered when using RSA/DSA keys without passphrase?
I configured my system to be able to login into a server using ssh without having to enter the user password by following this tutorial:
http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html
I created the RSA/DSA keys without passphrase.
I understand that if somebody gains access to the files in the .ssh directory, he'll have access to the server.
But will he be able to access the passwords encrypted in those files as well or not? (are the passwords encrypted in there or is it a system similar to /etc/shadow where it only contains some hash?)
edit:
Mmh, after looking at how the whole process works again, it seems like it doesn't require the user password at all... ^^'
But it would be nice if somebody could confirm this for me. ;)
And using a passphrase seems kind of pointless, since it asks for the passphrase all the time then.
Might as well enter my user password everytime...
What's the point of using RSA/DSA with passphrase?
If somebody gains access to the key, can he recover the passphrase from it?
re-edit:
From man ssh-keygen:
There is no way to recover a lost passphrase. If the passphrase is lost or forgotten, a new key must be generated and copied to the corresponding public key to other machines.
So the only danger when someone gains access to rsa/dsa files, is that he can connect to the server without a password (if no passphrase is used)?
The user account passwords are safe?
I configured my system to be able to login into a server using ssh without having to enter the user password by following this tutorial:
http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html
I created the RSA/DSA keys without passphrase.
I understand that if somebody gains access to the files in the .ssh directory, he'll have access to the server.
But will he be able to access the passwords encrypted in those files as well or not? (are the passwords encrypted in there or is it a system similar to /etc/shadow where it only contains some hash?)
edit:
Mmh, after looking at how the whole process works again, it seems like it doesn't require the user password at all... ^^'
But it would be nice if somebody could confirm this for me. ;)
And using a passphrase seems kind of pointless, since it asks for the passphrase all the time then.
Might as well enter my user password everytime...
What's the point of using RSA/DSA with passphrase?
If somebody gains access to the key, can he recover the passphrase from it?
re-edit:
From man ssh-keygen:
There is no way to recover a lost passphrase. If the passphrase is lost or forgotten, a new key must be generated and copied to the corresponding public key to other machines.
So the only danger when someone gains access to rsa/dsa files, is that he can connect to the server without a password (if no passphrase is used)?
The user account passwords are safe?