问题原文
原帖链接 · Aravor · CC BY-SA 3.0
I am running a SSH server and I am still using simple password authentication. Everywhere I read about security I am advised to use Public-Key Authentication. But I don't get the advantages. Using them is, in my eyes, either insecure or a lot of handy work.
Of course, if someone tries to brute-force the login into my SSH server Public-Key is a lot stronger than any password. But aside from that, it's totally insecure.
The advisors mostly argue that you don't have to remember a password. How insecure is that? So if someone hacks into my computer, he doesn't just get my computer, but my server too? If I am using SSH from various different clients, I have to store the public keys one every one of them, which multiplies the possibility that they fall into the false hands. I could save them on a usb-stick which I carry with me, but it can be lost and the finder has access to my server.
Possibly I am better served with Two-Factor Authentication.
Is there any argument I am missing? What is the best way for me?
社区高分解答
原帖链接 · Khaled · CC BY-SA 3.0
If you are using good passwords, this can be secure enough. I usually limit the number of publicly accessible servers to the minimum and allow SSH from specific IP(s) whenever possible.
Also, you can protect your keys by passphrase (password). So, this passphrase must be entered whenever you need to login to your server(s). No one can then use your key unless the right passphrase is provided.
There are similar posts:
- Post from serverfault.
- Post from security stackexchange.
- Post from superuser.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
