Sshd : Add desktop key.
This commit is contained in:
parent
40b0fb5b0f
commit
a695c2d91a
|
@ -1,4 +1,7 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGIf192IxsksM6u8UY+eqpHopebgV+NNq2G03ssdXIgz root@desktop"
|
||||||
|
];
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowSFTP = true;
|
allowSFTP = true;
|
||||||
|
|
|
@ -6,7 +6,7 @@ function ssh_mount() {
|
||||||
|
|
||||||
# Generate private an public keys on a local host and print a public key.
|
# Generate private an public keys on a local host and print a public key.
|
||||||
function ssh_keygen() {
|
function ssh_keygen() {
|
||||||
ssh-keygen -f ~/.ssh/key && cat ~/.ssh/key.pub
|
ssh-keygen && cat ~/.ssh/*.pub
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -o nospace -F _sshfs sshmount
|
complete -o nospace -F _sshfs sshmount
|
||||||
|
|
Loading…
Reference in a new issue