Project

General

Profile

Actions

Feature #15214

closed

Alternate port for SSH for certain hosts

Added by Cyril Stoll over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Foreman
Target version:
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Related to Foreman Remote Execution - Feature #16018: Support for alternate port for SSH for certain hosts on smart proxyClosed08/09/2016Actions
Actions #1

Updated by Marek Hulán over 8 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.

Actions #2

Updated by Cyril Stoll over 8 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

Actions #3

Updated by The Foreman Bot over 8 years ago

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

Updated by The Foreman Bot over 8 years ago

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

Updated by Cyril Stoll over 8 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

Actions #6

Updated by Ivan Necas over 8 years ago

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

Updated by Ivan Necas over 8 years ago

  • Target version set to 1.7.0
Actions #8

Updated by Ivan Necas over 8 years ago

  • Target version changed from 1.7.0 to 1.6.1
Actions #9

Updated by Ivan Necas over 8 years ago

  • Translation missing: en.field_release set to 179
Actions #10

Updated by Ivan Necas about 8 years ago

  • Status changed from Ready For Testing to Closed
Actions #11

Updated by Marek Hulán almost 8 years ago

  • 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

Actions #12

Updated by Ohad Levy over 7 years ago

  • Bugzilla link set to 1426709
Actions

Also available in: Atom PDF