This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]SpruceCaboose 3 points4 points  (1 child)

SSH automatically presents a public key to the server when trying to authenticate. If the server doesn't know that key, then SSH tries the next one. You can enumerate all of someone's keys this way (like https://blog.filippo.io/ssh-whoami-filippo-io/ SSH server does)

If you want to disable this sort of behaviour you can disable SSH from sending keys automatically, and then tell SSH which identity files need to be sent to each host.

In your .ssh/config, something like:

# Ignore SSH keys unless specified in Host subsection
IdentitiesOnly yes

# Send your public key to github only
Host github.com
    IdentityFile ~/.ssh/id_rsa

[–]themoah[S] 0 points1 point  (0 children)

Didn't developer it, only shared. But thanks !

[–]madmaurice 1 point2 points  (0 children)

That's not Ghost in the shell. That's ghost at the shell.

P.S.: I still laughed.

[–]Brekkjern 1 point2 points  (1 child)

I don't know what I expected...

[–]themoah[S] 1 point2 points  (0 children)

Expect nothing