diff --git a/module/common/Sshd.nix b/module/common/Sshd.nix index fdab5afd..ba293eab 100644 --- a/module/common/Sshd.nix +++ b/module/common/Sshd.nix @@ -1,4 +1,7 @@ { ... }: { + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGIf192IxsksM6u8UY+eqpHopebgV+NNq2G03ssdXIgz root@desktop" + ]; services.openssh = { enable = true; allowSFTP = true; diff --git a/module/common/bash/module/Ssh.sh b/module/common/bash/module/Ssh.sh index 77675e78..b34c9dac 100644 --- a/module/common/bash/module/Ssh.sh +++ b/module/common/bash/module/Ssh.sh @@ -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