commit 6bfbdf352d3654503bc4421ecedf01c28efd82b9 parent 4ea1cf7f321a8c4ef1001a42f36e0fdfd8c36fe9 Author: Daniel Barlow <dan@telent.net> Date: Sun, 22 Dec 2024 16:01:38 +0000 bordervm: expose ssh on port 2222 Diffstat:
| M | bordervm-configuration.nix | | | 18 | ++++++++++++------ |
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/bordervm-configuration.nix b/bordervm-configuration.nix @@ -102,12 +102,18 @@ in { systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ]; virtualisation = { - forwardPorts = [ { - from = "host"; - host.port = 7654; -# guest.address = "10.0.2.15"; - guest.port =7654; - } ]; + forwardPorts = [ + { + from = "host"; + host.port = 7654; + # guest.address = "10.0.2.15"; + guest.port =7654; + } + { + host.port = 2222; + guest.address = "10.0.2.15"; + guest.port = 22; + }]; qemu = { networkingOptions = [ ]; options =