picosh / pico

hacker labs - open source and managed web services leveraging SSH
https://pico.sh
MIT License
741 stars 25 forks source link

Add ability to modify name / comment field of ssh keys #127

Open chiefnoah opened 2 months ago

chiefnoah commented 2 months ago

For some reason the name field in my SSH keys are all empty. I don't want to have to try and remember the hash/signature of my keys, so being able to go back and modify the name would be very helpful in the pico.sh UI.

It's also unclear why the comment portion of my pubkeys was not filled in, they were definitely there when I put them in.

neurosnap commented 1 month ago

This has been implemented but we haven't written docs yet:

# download current authorized keys
rsync pico.sh:/authorized_keys ./authorized_keys
# made changes to the file
# then reupload
rsync ./authorized_keys pico.sh:/

The only caveat here is we will never remove the pubkey that is being used for the SSH session. This is to prevent users from accidentally locking themselves out of their account.