console_conf/controllers: do not attempt to set user's key fingerprint
In preparation for running console-conf as a strictly confined snaps, review of the existing code has shown that user's key fingerprints are not being used or displayed anywhere. Since we would not be able to read those public keys anyway, we may as well drop the code which attempts to device the key fingerprints. Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
This commit is contained in:
parent
b2441fd91d
commit
b19c716613
|
@ -156,9 +156,6 @@ class IdentityController(TuiController):
|
|||
device_owner = get_device_owner()
|
||||
if 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()
|
||||
else:
|
||||
return IdentityView(self.model, self)
|
||||
|
|
Loading…
Reference in New Issue