Merge pull request #1905 from bboozzoo/bboozzoo/drop-user-key-fingerprint

console_conf: do not attempt to obtain user's public key fingerprints
This commit is contained in:
Dan Bungert 2024-02-06 20:35:00 -07:00 committed by GitHub
commit 61af71f64d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 4 deletions

View File

@ -156,9 +156,6 @@ class IdentityController(TuiController):
device_owner = get_device_owner() device_owner = get_device_owner()
if device_owner: if device_owner:
self.model.add_user(device_owner) self.model.add_user(device_owner)
key_file = os.path.join(device_owner["homedir"], ".ssh/authorized_keys")
cp = run_command(["ssh-keygen", "-lf", key_file])
self.model.user.fingerprints = cp.stdout.replace("\r", "").splitlines()
return self.make_login_view() return self.make_login_view()
else: else:
return IdentityView(self.model, self) return IdentityView(self.model, self)

View File

@ -25,7 +25,6 @@ class User(object):
realname = attr.ib() realname = attr.ib()
username = attr.ib() username = attr.ib()
homedir = attr.ib(default=None) homedir = attr.ib(default=None)
fingerprints = attr.ib(init=False, default=[])
class IdentityModel(object): class IdentityModel(object):