Feature #15214
closed
Alternate port for SSH for certain hosts
Added by Cyril Stoll over 8 years ago.
Updated over 6 years ago.
Description
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).
- Category changed from Smart Proxy - SSH to Foreman
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.
Hi
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,
Cyril
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/196 added
- Pull request https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/27 added
Hi there
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,
Cyril
- Related to Feature #16018: Support for alternate port for SSH for certain hosts on smart proxy added
- Target version set to 1.7.0
- Target version changed from 1.7.0 to 1.6.1
- Translation missing: en.field_release set to 179
- Status changed from Ready For Testing to Closed
- Translation missing: en.field_release deleted (
179)
added in 1.2.2, seems like rex is no longer using release field so at least removing so it's not confusing
- Bugzilla link set to 1426709
Also available in: Atom
PDF