Let ssh-host list and remove installed machine SSH trust #130
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/auth!130
Loading…
Reference in a new issue
No description provided.
Delete branch "HOMECFG-206-ssh-host-remove"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR 1 of 3 for https://openproject.romaine.life/wp/HOMECFG-206: auth's
ssh-hostcould install or update host SSH trust but never remove it, so home-sync can't take a machine's trust away.Adds
ssh-host --installed(lists logins with installed principals, ornone) andssh-host --user USER --remove(deletes the login's principals; the last removal also strips the sshd_config block, checked withsshd -tand reloaded, and deletes the CA key). Install behavior is unchanged: its sshd check, write and reload moved into a shared function. Not elevated-tested on a real host; unit-tested on a temp directory.