forked from cockpit-project/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell, login: Overhaul SSH host key handling
New hostkeys are now added to ~/.ssh/known_hosts instead of /etc/ssh/ssh_known_hosts, so that also non-admin users can do it. Also, the /etc/ssh/ssh_known_hosts file is meant to be populated by the sysadmin, so it is best for Cockpit to leave it alone. The login page now automatically sets the #server-field input when there is a "/=HOST" redirection in the URL. Otherwise trying to log in will fail with a surprising "Unknown host" error message. The login page now remembers accepted SSH hostkeys in localStorage. It also has a dedicated UI for this, which avoids having to put the fingerprint into a text input. Fixes cockpit-project#14482
- Loading branch information
Showing
12 changed files
with
356 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.