ssh-chat icon indicating copy to clipboard operation
ssh-chat copied to clipboard

Add flag to force key-based user connection to use their key's username.

Open SirHall opened this issue 5 years ago • 3 comments

It would be useful to be able to have the server force each connecting client (if using public key authentication) to forcefully be assigned the username from their public key.

SirHall avatar Nov 17 '20 13:11 SirHall

To be clear, this would only work for whitelist pubkeys? Or admin pubkeys?

I like this idea overall, would you be interested in working on it?

Collisions will need to be renamed to GuestXXXX.

shazow avatar Nov 17 '20 17:11 shazow

Optimally you'd have a separate flag for each. I may be able to work on it.

SirHall avatar Nov 18 '20 12:11 SirHall

By example: ssh-rsa AAAA... myusername and prevent change nick, or add command to get key from user, by example /getkey username to identificate logged user when use whitelist keys. By example ./ssh-chat --whitelist '...' --forced-usernames

yhojann-cl avatar Feb 10 '21 04:02 yhojann-cl