Subject: [bug#66156] [PATCH 03/12] services: hurd-vm: Use the default SSH port number.

From: Ludovic Courtès <[email-masked]>
Date: Fri, 22 Sep 2023 14:54:04 +0200

* gnu/services/virtualization.scm (%hurd-vm-operating-system): Remove
‘port-number’ from ‘openssh-configuration’.
(hurd-vm-net-options): Change 2222 to 22 in port forwarding.
---
 gnu/services/virtualization.scm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index e1a206e0eb..fd153dd051 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -1078,7 +1078,6 @@ (define %hurd-vm-operating-system
                         (openssh-configuration
                          (openssh openssh-sans-x)
                          (use-pam? #f)
-                         (port-number 2222)
                          (permit-root-login #t)
                          (allow-empty-passwords? #t)
                          (password-authentication? #t)))
@@ -1146,7 +1145,7 @@ (define (hurd-vm-net-options config)
                     "-:1004"
                     ",hostfwd=tcp:127.0.0.1:"
                     (number->string (hurd-vm-port config %hurd-vm-ssh-port))
-                    "-:2222"
+                    "-:22"
                     ",hostfwd=tcp:127.0.0.1:"
                     (number->string (hurd-vm-port config %hurd-vm-vnc-port))
                     "-:5900")))
-- 
2.41.0