krebs / krops

Mirror of https://cgit.krebsco.de/krops/about/ (PRs / issues accepted, as can be seen by not having them disabled)
Do What The F*ck You Want To Public License
135 stars 18 forks source link

buildTarget with custom port is broken #16

Open ghost opened 4 years ago

ghost commented 4 years ago

buildTarget attrset contains port = 62954, but I get this output:

[...]
building Nix...
ssh: connect to host salat.pbb.lc port 22: Connection refused
error: cannot connect to 'pbb@salat.pbb.lc'
Connection to salat.pbb.lc closed.

(salat is the buildTarget and schinken is the target)

Lassulus commented 4 years ago

from reading the nixos-rebuild switch manual I'm not sure how it's supposed to work. Can you try (without krops) if --target-host salat.pbb.lc:62954 works?

ghost commented 4 years ago

No that doesn't work. I think it is impossible without changes to the nixos-rebuild tool. It is possible to set the port for all connections using NIX_SSHOPTS="-pXX" however.

4z3 commented 4 years ago

https://github.com/krebs/krops/issues/6 is maybe related.