set up config for Earthmover and add sshd
This commit is contained in:
parent
eb279f1f65
commit
64d2ffdeaa
6 changed files with 74 additions and 16 deletions
|
|
@ -5,14 +5,31 @@
|
|||
startAgent = true;
|
||||
enableAskPassword = true;
|
||||
extraConfig = "
|
||||
IdentityFile /home/wo2w/.ssh/ssh-key
|
||||
User wo2w
|
||||
Host gameserver
|
||||
Hostname 192.168.2.221
|
||||
Port 22
|
||||
User wo2w
|
||||
IdentityFile /home/wo2w/.ssh/ssh-key
|
||||
Host Swordsmachine
|
||||
Hostname 192.168.2.122
|
||||
Port 8743
|
||||
Host Earthmover
|
||||
Hostname 192.168.2.147
|
||||
Port 8743
|
||||
";
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 8743 ];
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
AllowUsers = [ "wo2w" ];
|
||||
};
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = if config.services.desktopManager.plasma6.enable then with pkgs; [ kdePackages.ksshaskpass ] else [];
|
||||
variables = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue