Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Guacamole
  3. SSH Help!!!

SSH Help!!!

Scheduled Pinned Locked Moved Solved Guacamole
sshhelp
11 Posts 5 Posters 3.9k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bigbucketboyB Offline
      bigbucketboyB Offline
      bigbucketboy
      wrote on last edited by
      #1

      Hello,

      I’ve been using Cloudron for quite awhile now and I really enjoy the simplicity of it! One of the apps I’ve been using is Guacamole. It’s completely replaced every Remote Desktop service I had. I love it!

      But here is my issue. One of the servers I connect to has been running very poorly, so I decided to wipe the server and rebuild it. When I finally got it all setup again I went and removed the old server from Guacamole and re-added this rebuilt server back to Guacamole. VNC works great. But SSH is what’s causing the problem. I can’t for the life of me figure out why it won’t connect. All the other clients I use for SSH connect to the new rebuilt server with the same parameters. I pulled the logs and it says that it successfully connects and establishes itself to the server but then disconnects because a handshake failed. I did set the new rebuilt server to have the same static IP address as it had before it was rebuilt because I have other services that run on this server that have ports already setup and configured in my router and I didn’t want to have to go through and edit all them again.

      My guess as to what’s happening is Guacamole has hung onto the previous servers IP address and MAC address as well as the fingerprint associated with those items for SSH. Because the same IP and MAC are identical to the previous settings but the fingerprint has changed since it’s a brand new install it’s failing the handshake. But here’s where it gets weird. I looked everywhere on where this file could possibly be located and was going to edit it to match the correct fingerprint but I cannot for the life of me find the location. It’s no where documented that I am able to locate for this scenario. But because of this hunch I had I decided to completely remove the Guacamole app from my Cloudron server and the do a brand new reinstallation of the app hoping that would clear the problem. But NOPE!!! After pulling the logs I’m still getting the same error. It’s like it saved the settings or something from the previous Guacamole install. I’m at my wits end and can really use some guidance here to make this work. This is my last attempt to get it working before I completely rebuild the Cloudron server itself next. I’m only connecting through username and password no ssh-keys. I haven’t tried that as an option because I want to know why this is even happening in the first place.

      Please let me know if you have a way to fix my issue. If you would like me to I can post the logs here if need be.

      Thanks!!

      BrutalBirdieB 1 Reply Last reply
      0
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        It sounds like this is the cause of the issue:
        https://issues.apache.org/jira/browse/GUACAMOLE-1315

        Related issue here:
        https://www.reddit.com/r/linuxquestions/comments/ued2vq/comment/i736why/

        The 'hack' will be needed until the Guac folks resolve this issue: https://issues.apache.org/jira/browse/GUACAMOLE-1504

        It looks like Guacamole only supports ssh-dss and ssh-rsa, and both have been disabled in Ubuntu.

        DSS was removed 8 years ago and RSA has been deprecated, so hopefully Guacamole updates sometime soon.

        In the meantime a workaround is adding “HostKeyAlgorithms +ssh-rsa” to the end of /etc/ssh/sshd_config on the Ubuntu machine and restart sshd.

        Conscious tech

        1 Reply Last reply
        2
        • bigbucketboyB bigbucketboy

          Hello,

          I’ve been using Cloudron for quite awhile now and I really enjoy the simplicity of it! One of the apps I’ve been using is Guacamole. It’s completely replaced every Remote Desktop service I had. I love it!

          But here is my issue. One of the servers I connect to has been running very poorly, so I decided to wipe the server and rebuild it. When I finally got it all setup again I went and removed the old server from Guacamole and re-added this rebuilt server back to Guacamole. VNC works great. But SSH is what’s causing the problem. I can’t for the life of me figure out why it won’t connect. All the other clients I use for SSH connect to the new rebuilt server with the same parameters. I pulled the logs and it says that it successfully connects and establishes itself to the server but then disconnects because a handshake failed. I did set the new rebuilt server to have the same static IP address as it had before it was rebuilt because I have other services that run on this server that have ports already setup and configured in my router and I didn’t want to have to go through and edit all them again.

          My guess as to what’s happening is Guacamole has hung onto the previous servers IP address and MAC address as well as the fingerprint associated with those items for SSH. Because the same IP and MAC are identical to the previous settings but the fingerprint has changed since it’s a brand new install it’s failing the handshake. But here’s where it gets weird. I looked everywhere on where this file could possibly be located and was going to edit it to match the correct fingerprint but I cannot for the life of me find the location. It’s no where documented that I am able to locate for this scenario. But because of this hunch I had I decided to completely remove the Guacamole app from my Cloudron server and the do a brand new reinstallation of the app hoping that would clear the problem. But NOPE!!! After pulling the logs I’m still getting the same error. It’s like it saved the settings or something from the previous Guacamole install. I’m at my wits end and can really use some guidance here to make this work. This is my last attempt to get it working before I completely rebuild the Cloudron server itself next. I’m only connecting through username and password no ssh-keys. I haven’t tried that as an option because I want to know why this is even happening in the first place.

          Please let me know if you have a way to fix my issue. If you would like me to I can post the logs here if need be.

          Thanks!!

          BrutalBirdieB Online
          BrutalBirdieB Online
          BrutalBirdie
          Partner
          wrote on last edited by
          #2

          @bigbucketboy Could be known_hosts problem?
          https://guacamole.apache.org/doc/1.0.0/gug/configuring-guacamole.html#ssh-host-verification

          Did you check that?

          Like my work? Consider donating a drink. Cheers!

          1 Reply Last reply
          0
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #3

            It sounds like this is the cause of the issue:
            https://issues.apache.org/jira/browse/GUACAMOLE-1315

            Related issue here:
            https://www.reddit.com/r/linuxquestions/comments/ued2vq/comment/i736why/

            The 'hack' will be needed until the Guac folks resolve this issue: https://issues.apache.org/jira/browse/GUACAMOLE-1504

            It looks like Guacamole only supports ssh-dss and ssh-rsa, and both have been disabled in Ubuntu.

            DSS was removed 8 years ago and RSA has been deprecated, so hopefully Guacamole updates sometime soon.

            In the meantime a workaround is adding “HostKeyAlgorithms +ssh-rsa” to the end of /etc/ssh/sshd_config on the Ubuntu machine and restart sshd.

            Conscious tech

            1 Reply Last reply
            2
            • girishG girish moved this topic from Support on
            • bigbucketboyB Offline
              bigbucketboyB Offline
              bigbucketboy
              wrote on last edited by
              #4

              @BrutalBirdie and @robi thanks for your guys help! @robi your suggestion by adding the new line in the /etc/ssh/sshd_config this worked perfectly and gave me my command line gui in Guacamole. I’ll mark this as solved. Thanks for your thorough explanation as not only how to fix it but also as to why it wasn’t working in the first place. Thanks again guys!

              S 1 Reply Last reply
              1
              • bigbucketboyB Offline
                bigbucketboyB Offline
                bigbucketboy
                wrote on last edited by
                #5

                Wow. I must be a noob but how in the world do you mark a post as solved???

                Sorry for the stupid question lol.

                robiR 1 Reply Last reply
                0
                • bigbucketboyB bigbucketboy

                  Wow. I must be a noob but how in the world do you mark a post as solved???

                  Sorry for the stupid question lol.

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #6

                  @bigbucketboy said in SSH Help!!!:

                  Wow. I must be a noob but how in the world do you mark a post as solved???

                  Sorry for the stupid question lol.

                  top right dropdown.

                  Conscious tech

                  bigbucketboyB 1 Reply Last reply
                  0
                  • robiR robi

                    @bigbucketboy said in SSH Help!!!:

                    Wow. I must be a noob but how in the world do you mark a post as solved???

                    Sorry for the stupid question lol.

                    top right dropdown.

                    bigbucketboyB Offline
                    bigbucketboyB Offline
                    bigbucketboy
                    wrote on last edited by
                    #7

                    @robi I don't think I have that option maybe that's why I can't do it. Here is a screen grab.Screenshot 2022-10-16 173522.png

                    robiR 1 Reply Last reply
                    0
                    • bigbucketboyB bigbucketboy

                      @robi I don't think I have that option maybe that's why I can't do it. Here is a screen grab.Screenshot 2022-10-16 173522.png

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #8

                      @bigbucketboy check the gear icon

                      Conscious tech

                      BrutalBirdieB 1 Reply Last reply
                      1
                      • robiR robi

                        @bigbucketboy check the gear icon

                        BrutalBirdieB Online
                        BrutalBirdieB Online
                        BrutalBirdie
                        Partner
                        wrote on last edited by
                        #9

                        @bigbucketboy You will have to click the gear icon and select ask a question, then the topic will have a unsolved tag, then you can select a comment as the answer aka. mark this as solution.

                        Like my work? Consider donating a drink. Cheers!

                        1 Reply Last reply
                        1
                        • girishG girish marked this topic as a question on
                        • girishG girish has marked this topic as solved on
                        • bigbucketboyB bigbucketboy

                          @BrutalBirdie and @robi thanks for your guys help! @robi your suggestion by adding the new line in the /etc/ssh/sshd_config this worked perfectly and gave me my command line gui in Guacamole. I’ll mark this as solved. Thanks for your thorough explanation as not only how to fix it but also as to why it wasn’t working in the first place. Thanks again guys!

                          S Offline
                          S Offline
                          skippsterr
                          wrote on last edited by
                          #10

                          @bigbucketboy is there a way to modify ssh_config file? Its read only and I tried to chmod the file, and guessing its a container thing. I edited the host OS, but guessing the container needs to be modified.. I can't SSH into the Ubuntu system.. Not a linux/container guy

                          girishG 1 Reply Last reply
                          0
                          • S skippsterr

                            @bigbucketboy is there a way to modify ssh_config file? Its read only and I tried to chmod the file, and guessing its a container thing. I edited the host OS, but guessing the container needs to be modified.. I can't SSH into the Ubuntu system.. Not a linux/container guy

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #11

                            @skippsterr Why do you want to edit the sshd_config file in the container? I think the original solution was to edit the sshd_config in the target ubuntu machine that you will connect to (not Cloudron server).

                            1 Reply Last reply
                            1
                            • girishG girish referenced this topic on
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Bookmarks
                              • Search