Alternate port for SSH for certain hosts
Would be great if there was a way to specify a custom port for certain hosts when using remote execution over SSH (like: ssh -p 22222 user@host).
#2 Updated by Cyril Stoll about 6 years ago
Marek Hulán wrote:
Would using a host parameter be enough? It can be configured globally, per host group, domain, os, organization, location, host. Default value would be set globally for 22.
Not sure if that question was meant for me or the developers or the whole community. In my opinion that sounds like a great solution with a lot of flexibility. In our company we would only use it for certain hosts (not whole groups of hosts) since no two hosts use the same port (aside of course those who do use port 22). Nevertheless as far as I understand you that would be a perfect solution for this.
Thanks a lot and best regards,
#5 Updated by Cyril Stoll about 6 years ago
First of all I want to thank everybody who has been working on this issue/feature, I really appreciate that!
Really hope I don't mess up anything with this comment. If this comment does not belong here feel free to delete it (and maybe drop me an email).
It looks like it should be tested which I'm happy to do but I don't know how. I installed foreman via apt-get and therefore guess that I can't just fetch the changes from github. I could just manually change the files but am not sure if I might be missing something. Do I just have to change those 3 files (https://github.com/theforeman/foreman_remote_execution/pull/196/files) and those 4 files (https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/27/files) and restart apache/foreman-proxy?
Furthermore in the meantime I already updated to Foreman 1.12.1. Will the same changes work or where those changes just for Foreman 1.11.x?
Thanks and best regards,