4 ms·
What about if you sign into one with key based authentication? Does that server now know your key?
by bluedino 10y ago
What about if you sign into one with key based authentication? Does that server now know your key?
- deleted 10y ago[deleted]
- karlshea 10y agoYour public key, yes, but that shouldn't be an issue.
- Tharkun 10y agoI wish people would stop saying thay. It is an issue. Maybe not for you, but for a lot of people. It allows any server you connect to to enumerate all of your public keys and identities. If you use nasty leaky services like Github then at least one of your public keys can be used to identify you. This is bad and stupid. This is why you should tell SSH to use specific keys for specific hosts, and fall back to a nonexistent key for unknown hosts.
- arkadiyt 10y agoYes, the server knows your public key. In fact, unless you have specified which public key to use (via command line option or ~/.ssh/config), the server receives all your public keys. This is identifying information - most people have at least 1 ssh public key in github, and github makes those completely public as well. Filippo Valsorda from Cloudflare built a demo of this - try running: ssh whoami.filippo.io and if you have any of your keys in github, it will identify you. If you want to avoid this you should configure ssh to only send a single specific key.
- colemickens 10y agoI don't know why, but it has never, ever gotten me. I guess maybe they're a point in time snapshot and all my keys have rolled since then.
- GlennS 10y agoThis is the clever thing about asymmetric encryption. You can prove that you know a particular secret (your private key) without actually divulging what it is.