Sshd : Add desktop key.

This commit is contained in:
Dmitry Voronin 2024-03-09 19:56:45 +03:00
parent 40b0fb5b0f
commit a695c2d91a
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,7 @@
{ ... }: {
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGIf192IxsksM6u8UY+eqpHopebgV+NNq2G03ssdXIgz root@desktop"
];
services.openssh = {
enable = true;
allowSFTP = true;

View file

@ -6,7 +6,7 @@ function ssh_mount() {
# Generate private an public keys on a local host and print a public key.
function ssh_keygen() {
ssh-keygen -f ~/.ssh/key && cat ~/.ssh/key.pub
ssh-keygen && cat ~/.ssh/*.pub
}
complete -o nospace -F _sshfs sshmount