Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10049

SSH key setup needs to be aligned with openshift as otherwise its very easy to end up with hard to handle auth key errors

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.3.0.M4
    • Component/s: openshift
    • Labels:
      None

      Description

      It turns out that openshift command line forces a specific key name in their ssh usage and even hardcodes it into ~/.ssh/config for all communication with *.rhcloud.com. this config git/jscsh listens too and thus no matter what the user does in eclipse he will get auth errors unless he actually used the exact same key.

      And to make matters worse jcsh only reads this configuration on startup of eclipse so to align keys you have to restart eclipse after doing changes config.

      The problem with all this is that if you are a new user using the tools you will bump into problems as soon as you need to use tail-files or add cartridges because we create the key with a different name that the command line tools expect.

      To remedy this problem three changes are to be made:

      1) on create domain we will check if <sshhome>/libra_id_rsa.pub exist - if it does we prefill the key name with that.

      2) New will only create a key named <sshome>/libra_id_rsa(.pub) - if such file already exist it will say it won't create one

        Gliffy Diagrams

        1. create-libra-key.patch
          8 kB
          Andre Dietisheim
        2. create-libra-key-2.patch
          8 kB
          Andre Dietisheim

          Issue Links

            Activity

            Hide
            adietish Andre Dietisheim added a comment -

            committed to M4

            Show
            adietish Andre Dietisheim added a comment - committed to M4
            Hide
            psrna Pavol Srna added a comment -

            Hi Andre, Did you commit also to trunk? I just want to be sure that we do not lose any bug fix in beta1 if I close this. thanks.

            Show
            psrna Pavol Srna added a comment - Hi Andre, Did you commit also to trunk? I just want to be sure that we do not lose any bug fix in beta1 if I close this. thanks.
            Hide
            psrna Pavol Srna added a comment -

            Sorry, I see now. the issue is cloned.

            Show
            psrna Pavol Srna added a comment - Sorry, I see now. the issue is cloned.
            Hide
            psrna Pavol Srna added a comment -

            Verified on jbosstools-3.3_stable_branch.aggregate-Update-2011-10-27_16-13-53-H37.

            Show
            psrna Pavol Srna added a comment - Verified on jbosstools-3.3_stable_branch.aggregate-Update-2011-10-27_16-13-53-H37.

              People

              • Assignee:
                adietish Andre Dietisheim
                Reporter:
                maxandersen Max Rydahl Andersen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development