Open tokudan opened 7 years ago
This is indeed a major problem when you want to install two different SSH servers (including one openssh), which is my case now… The Hetzner rescue system is accessed with port 22, deployments not using that port should be changed.
I set a non-standard SSH port for my systems through
services.openssh.ports = [ 12345 ];
However during the first setup, the system still has the default port 22, which nixops only partially understands:nixops is trying to connect to port 12345 instead of 22.
If I set
deployment.targetPort = 22
then nixops is able to deploy, but hangs in an endless loop at the end duringfreya> waiting for the machine to finish rebooting...[down]...
aborting and restarting the deploy results inRemoving deployment.targetPort and restarting the deploy results in the same issue.
I would expect nixops to know the current ssh port of the machine.