Allow guacamole to ssh into lapetus
This commit is contained in:
parent
e924b339c8
commit
a9fd6e10f3
|
@ -16,11 +16,8 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
# Forbid root login through SSH.
|
PermitRootLogin = "no"; # Forbid root login through SSH.
|
||||||
PermitRootLogin = "no";
|
PasswordAuthentication = false; # Use keys only.
|
||||||
|
|
||||||
# Use keys only. Remove if you want to SSH using password (not recommended)
|
|
||||||
PasswordAuthentication = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Automatically remove stale sockets
|
# Automatically remove stale sockets
|
||||||
|
@ -38,8 +35,8 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Passwordless sudo when SSH'ing with keys
|
|
||||||
# TODO: is this safe? Can we ssh back and gain root access this way?
|
# TODO: is this safe? Can we ssh back and gain root access this way?
|
||||||
|
# Passwordless sudo when SSH'ing with keys
|
||||||
# security.pam.enableSSHAgentAuth = true;
|
# security.pam.enableSSHAgentAuth = true;
|
||||||
|
|
||||||
# SSH on slow connections
|
# SSH on slow connections
|
||||||
|
|
|
@ -11,4 +11,7 @@
|
||||||
services.guacamole-client = {
|
services.guacamole-client = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Allow ssh-ing using the provided key
|
||||||
|
users.users.pilot.openssh.authorizedKeys.keyFiles = [ ./ed25519.pub ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue