Results 1 to 8 of 8

Thread: OpenSSH 7.3 or above for opensuse - Roadmap for LEAP and TUMBLEWEED

  1. #1

    Question OpenSSH 7.3 or above for opensuse - Roadmap for LEAP and TUMBLEWEED

    Hi,

    with OpenSSH 7.3p1 and up where is the option of structuring the ~/.ssh/config a bit more, using the "Include"-Option
    https://superuser.com/a/1142813
    Since having to access servers with different purposes, I'd like to share different parts of my ssh config file with different colleagues. This include option is something I really waited for.

    Unfortunately OpenSSH on opensuse (both LEAP 42.3 and tumbleweed) is still at 7.2p2.

    I'm reluctant to use any other SSH package than the ones provided by the main repos.

    Who knows about the roadmap of OpenSSH versions to be used within opensuse? The newest version is 7.5.p1 released in March this year.

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: OpenSSH 7.3 or above for opensuse - Roadmap for LEAP and TUMBLEWEED

    Recommend submitting a Feature Request to https://bugzilla.opensuse.org.

    It's probably time to build a later version, the current package version was initially launched a year ago...

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: OpenSSH 7.3 or above for opensuse - Roadmap for LEAP and TUMBLEWEED

    So far, I managed to add a comment to the package here
    https://build.opensuse.org/package/s...actory/openssh
    only.

    You haven't got a sample of a Feature Request available by any chance, have you?
    I couldn't figure out how to mark the (bug) report as Feature Request and I'm reluctant to enter it as a bug report. All I could do is maybe prepend Feature Request to the title.

  4. #4

    Thumbs up Re: OpenSSH 7.3 or above for opensuse - Roadmap for LEAP and TUMBLEWEED

    The packages on

    https://build.opensuse.org/package/show/network/openssh

    have been updated to version 7.6 which is great!

    Creating a ~/.ssh/config file with "Include"-statements works flawelessly.
    Even autocompletion of hostnames specified in the included config files works. Although I haven't found out how this is being achieved. I haven't found any trace of it in /etc/bash_completion.d/ .
    In case, someone is able to enlighten me, I would be grateful.

  5. #5

    Default Re: OpenSSH 7.3 or above for opensuse - Roadmap for LEAP andTUMBLEWEED

    Am Thu, 04 Jan 2018 16:56:01 GMT
    schrieb marodger <marodger@no-mx.forums.microfocus.com>:

    > I haven't found any trace of it in /etc/bash_completion.d/ .


    -> /usr/share/bash-completion


  6. #6

    Default Re: OpenSSH 7.3 or above for opensuse - Roadmap for LEAP and TUMBLEWEED

    Thanks, I've found the scripts for (Tab) completion in "/usr/share/bash-completion/completions" too in the meantime.
    Searching through same scripts I could find the mentioning of "HostName" as well e.g. in the scripts named "ssh", "autossh" and some others.
    For me, it seems there is quite a bit of magic going on.
    For now, I do not need to understand all the details but I would love to find some pointer how the complete mechanism is traversing through the config files included in the main config.
    My main config (~/.ssh/config) looks like this
    Code:
    Include config_service1
    Include config_service2
    config_service1
    Code:
    Host svc1test
        HostName box233
        User ....
    $ssh svc1t<TAB>
    is working. (Even though, svc1test is not included in know_hosts yet or anywhere else). The only place the completion mechanism can pick up the host's name is from the included config file. That's great. But where is the magic located?

  7. #7

    Default Re: OpenSSH 7.3 or above for opensuse - Roadmap for LEAP and TUMBLEWEED

    Quote Originally Posted by marodger View Post
    $ssh svc1t<TAB>
    is working. (Even though, svc1test is not included in know_hosts yet or anywhere else). The only place the completion mechanism can pick up the host's name is from the included config file. That's great. But where is the magic located?
    I peeked around a bit. There are no bash-completion scripts in openssh (either 7.2p2 or 7.6). But there is /usr/share/bash-completion/completions/ssh, which belongs to the package bash-completion-2.1 (on my system = Leap 42.3).

    In there is a call for _known_hosts_real. That is a function located in /usr/share/bash-completion/bash_completion. Alas, no ssh include files magic in there.

    But OBS has: https://software.opensuse.org/package/bash-completion, with a new version bash-completion-2.7 in the shells-repository.

    And that package does have some ssh include files magic in /usr/share/bash-completion/bash_completion.

    Kind regards,

    Leen

  8. #8

    Thumbs up [Solved] OpenSSH 7.3 or above for opensuse - Roadmap for LEAP and TUMBLEWEED

    Quote Originally Posted by leen_meyer View Post
    bash-completion-2.7 in the shells-repository.
    And that package does have some ssh include files magic in /usr/share/bash-completion/bash_completion.
    Thank you Leen!

    I had tested it on a machine running Tumbleweed and version 2.7 of bash-completion was already installed.

    The function is called _included_ssh_config_files(), in case someone else is looking for it.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •