Project

General

Profile

Feature #15214

Alternate port for SSH for certain hosts

Added by Cyril Stoll about 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Foreman
Target version:

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).


Related issues

Related to Foreman Remote Execution - Feature #16018: Support for alternate port for SSH for certain hosts on smart proxyClosed2016-08-09

Associated revisions

Revision 14187c25 (diff)
Added by Dominik Hlavac Duran almost 6 years ago

Fixes #15214 - Added setting ssh port for host

History

#1 Updated by Marek Hulán about 6 years ago

  • 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.

#2 Updated by Cyril Stoll about 6 years ago

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

#3 Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/196 added

#4 Updated by The Foreman Bot about 6 years ago

  • Pull request https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/27 added

#5 Updated by Cyril Stoll about 6 years ago

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

#6 Updated by Ivan Necas about 6 years ago

  • Related to Feature #16018: Support for alternate port for SSH for certain hosts on smart proxy added

#7 Updated by Ivan Necas about 6 years ago

  • Target version set to 1.7.0

#8 Updated by Ivan Necas almost 6 years ago

  • Target version changed from 1.7.0 to 1.6.1

#9 Updated by Ivan Necas almost 6 years ago

  • Legacy Backlogs Release (now unused) set to 179

#10 Updated by Ivan Necas almost 6 years ago

  • Status changed from Ready For Testing to Closed

#11 Updated by Marek Hulán over 5 years ago

  • Legacy Backlogs Release (now unused) 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

#12 Updated by Ohad Levy over 5 years ago

  • Bugzilla link set to 1426709

Also available in: Atom PDF