Re: ssh pubkey validation
- From: Ian Rawlings <news06@xxxxxxxxxxxxx>
- Date: Tue, 11 Mar 2008 16:16:27 +0000
On 2008-03-11, Tony Houghton <h@xxxxxxxxxxx> wrote:
If it has the same public key as I've given out to repo.or.cz
there's a potential security breach. Does sshd ensure that a public
key is only accepted if the client can validate it with the
corresponding private key?
A public key is totally public, and is worthless to an attacker, so no
there is no security issue. The security issue only arises if the
private key is released.
The way the public/private key system works is that anything encoded
with the public key can only be decoded by the corresponding (but not
identical) private key, when you make an SSH connection, a session key
is encrypted by the remote end with your public key, and send back to
you. You are only able to decrypt that session key if you have the
corresponding private key. If you can decrypt that session key then
the encrypted connection succeeds and the session key is used to
encrypt the traffic on the SSH session. Once the session key has been
exchanged the public/private key are not used again until a new
session key is needed, at which point a new session key is encrypted
with your public key and sent to you again and the cycle repeats.
This means that an SSH connection can only use your public key
successfully if you are initiating that connection from a machine that
has the corresponding private key. Putting your public key into the
authorized_keys file on a machine does not permit anyone with your
public key from also accessing that machine, it can only be accessed
by someone with the corresponding private key.
--
Blast off and strike the evil Bydo empire!
http://youtube.com/user/tarcus69
http://www.flickr.com/photos/tarcus/
.
- References:
- ssh pubkey validation
- From: Tony Houghton
- ssh pubkey validation
- Prev by Date: ssh pubkey validation
- Next by Date: Re: Missing data using RHEL 3.0 with NFS and a filer
- Previous by thread: ssh pubkey validation
- Next by thread: Re: ssh pubkey validation
- Index(es):
Relevant Pages
|
Loading