Re: HELP! I've been had! Someone hacked into my Linux box. What now?
- From: Ertugrul Soeylemez <never@xxxxxxxxxxxxxx>
- Date: Sun, 12 Nov 2006 14:57:59 +0100
"jg" <juangarcia@xxxxxxxxxxxxxx> (06-11-10 11:57:01):
Also, what can I do in the future to prevent something like this from
happening again? I thought my passwords were pretty secure... but I
guess I was mistaken. I cannot really do a private/public key since I
need access to my box from multiple locations. Also, is this more
secure?
All other questions have been answered, so I'd like to answer this last
one. Yes, public key authentication is much more secure than password
authentication. People need your private key to be able to authenticate
themselves. Why is this a problem for the attacker?
Firstly, the people have to know your public key to be able to recover
your private key at all. If they don't know it, they've lost. However,
the whole sense between public key cryptography is that your public key
_is_ known to the public. So obviously, even with the knowledge of your
public key, it is hard to recover your private key; much harder than
guessing a password with 30 random characters.
The fact that your public key may be published without worries, and
since the server really only needs to know your public key to
authenticate you, brings one major advantage: You can use the same key
to authenticate to arbitrarily many servers. You don't need a separate
key for every server.
In other words: It's not only more secure, it's even much easier. Just
take your private key with you. Place it on a USB stick and carry that
one on your key-chain. You'll still want to encrypt it (in easier
words: protect it by a passphrase), in case you lose it. The key
generator (ssh-keygen) asks for a passphrase anyway, so you don't just
press Return.
Regards,
E.S.
.
- Follow-Ups:
- Re: HELP! I've been had! Someone hacked into my Linux box. What now?
- From: C.J. Steele
- Re: HELP! I've been had! Someone hacked into my Linux box. What now?
- References:
- Prev by Date: Re: HELP! I've been had! Someone hacked into my Linux box. What now?
- Next by Date: Re: HELP! I've been had! Someone hacked into my Linux box. What now?
- Previous by thread: Re: HELP! I've been had! Someone hacked into my Linux box. What now?
- Next by thread: Re: HELP! I've been had! Someone hacked into my Linux box. What now?
- Index(es):
Relevant Pages
|
|