mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 11:08:44 +08:00
sshd: use key without fido2 pin
This commit is contained in:
parent
5a2b46898d
commit
565b7dd6bc
@ -14,8 +14,8 @@ inputs:
|
|||||||
(builtins.concatStringsSep ""
|
(builtins.concatStringsSep ""
|
||||||
[
|
[
|
||||||
"sk-ssh-ed25519@openssh.com "
|
"sk-ssh-ed25519@openssh.com "
|
||||||
"AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIPLByi05vCA95EfpgrCIXzkuyUWsyh+Vso8FsUNFwPXFAAAABHNzaDo= "
|
"AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIEU/JPpLxsk8UWXiZr8CPNG+4WKFB92o1Ep9OEstmPLzAAAABHNzaDo= "
|
||||||
"chn@chn.moe"
|
"chn@pc"
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@ -43,11 +43,15 @@ inputs:
|
|||||||
hashedPassword = "$y$j9T$xJwVBoGENJEDSesJ0LfkU1$VEExaw7UZtFyB4VY1yirJvl7qS7oiF49KbEBrV0.hhC";
|
hashedPassword = "$y$j9T$xJwVBoGENJEDSesJ0LfkU1$VEExaw7UZtFyB4VY1yirJvl7qS7oiF49KbEBrV0.hhC";
|
||||||
openssh.authorizedKeys.keys =
|
openssh.authorizedKeys.keys =
|
||||||
[
|
[
|
||||||
|
# ykman fido credentials list
|
||||||
|
# ykman fido credentials delete f2c1ca2d
|
||||||
|
# ssh-keygen -t ed25519-sk -O resident
|
||||||
|
# ssh-keygen -K
|
||||||
(builtins.concatStringsSep ""
|
(builtins.concatStringsSep ""
|
||||||
[
|
[
|
||||||
"sk-ssh-ed25519@openssh.com "
|
"sk-ssh-ed25519@openssh.com "
|
||||||
"AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIPLByi05vCA95EfpgrCIXzkuyUWsyh+Vso8FsUNFwPXFAAAABHNzaDo= "
|
"AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIEU/JPpLxsk8UWXiZr8CPNG+4WKFB92o1Ep9OEstmPLzAAAABHNzaDo= "
|
||||||
"chn@chn.moe"
|
"chn@pc"
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user