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. Support
  3. SSH Access to Gitlab instance not working

SSH Access to Gitlab instance not working

Scheduled Pinned Locked Moved Solved Support
18 Posts 5 Posters 2.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.
  • BrutalBirdieB BrutalBirdie

    @kaxline sorry but what are you trying to achieve here?
    First you write about the ssh problem with your own gitlab app, now there is a problem with the git.cloudron.io.
    The Operation timed out is a different problem then your initial problem.

    What is your goal exactly? Just see that clone via ssh is working?

    It could have been that you ran into the automated server restart at night time that is why you got the Operation timed out.
    You could have checked against that by pinging git.cloudron.io

    When I try to clone the gitlab app via ssh from a random system I get this:

    ~/tmp # git clone ssh://git@git.cloudron.io:6000/cloudron/gitlab-app.git
    Cloning into 'gitlab-app'...
    The authenticity of host '[git.cloudron.io]:6000 ([45.55.2.141]:6000)' can't be established.
    ECDSA key fingerprint is SHA256:5Z0PZclabDgIVpQ8VPxkR8L0SDVNylIYWUisPvYYS3A.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    Warning: Permanently added '[git.cloudron.io]:6000,[45.55.2.141]:6000' (ECDSA) to the list of known hosts.
    git@git.cloudron.io's password:
    

    which is expected! Since this random system has no permission and/or authentication (ssh-key) in this system to clone via ssh!

    Doing this via https works tho:

    ~/tmp # git clone https://git.cloudron.io/cloudron/gitlab-app.git
    Cloning into 'gitlab-app'...
    remote: Enumerating objects: 3241, done.
    remote: Counting objects: 100% (320/320), done.
    remote: Compressing objects: 100% (186/186), done.
    remote: Total 3241 (delta 201), reused 228 (delta 134), pack-reused 2921
    Receiving objects: 100% (3241/3241), 503.65 KiB | 788.00 KiB/s, done.
    Resolving deltas: 100% (2134/2134), done.
    

    If I now fork the app, then I can clone via ssh because my user account has my ssh-key.

    ╭─eha@BrutalBirdie in ~/Develop/cloudron took 6m
    ╰─λ git clone ssh://git@git.cloudron.io:6000/BrutalBirdie/gitlab-app.git                                                                                                                                   08:57:35
    Cloning into 'gitlab-app'...
    remote: Enumerating objects: 3241, done.
    remote: Counting objects: 100% (320/320), done.
    remote: Compressing objects: 100% (148/148), done.
    remote: Total 3241 (delta 200), reused 282 (delta 172), pack-reused 2921
    Receiving objects: 100% (3241/3241), 504.69 KiB | 1.42 MiB/s, done.
    Resolving deltas: 100% (2133/2133), done.
    

    I guess your desired outcome is to see that the ssh functionality from cloudron gitlab-app is working, but I am struggling to replicate your problem.
    Maybe we should take a step back and you describe what you are trying to do and achieve.

    kaxlineK Offline
    kaxlineK Offline
    kaxline
    wrote on last edited by
    #9

    @brutalbirdie Sorry, still messing up communication despite my best efforts.

    In my previous post, I only cited this command as an example:

    git clone ssh://git@git.cloudron.io:6000/cloudron/gitlab-app.git

    Since I didn't want to post my actual connection string, which is something like:

    git clone ssh://git@gitlab.mydomain.com:XXXXX/cloudron/my-repo.git

    And that's the one that is not working and has Operation timed out as the error. Again, this is not an issue with reaching git.cloudron.io. It's an issue with reaching gitlab.mydomain.com.

    I'm just trying to use the ssh links for my repos hosted on my Cloudron instance of Gitlab. Nothing fancy. I just can't connect to them from my machine, even though I can ssh into the server that is running Cloudron.

    Does that make sense?

    1 Reply Last reply
    0
    • scookeS scooke

      Was it working before?

      I searched the forum and found the following that may help you: https://forum.cloudron.io/topic/1780/cloudron-overrides-iptables-persistent/12

      As well, from the official documentation: https://docs.cloudron.io/networking/#whitelist-ports.

      kaxlineK Offline
      kaxlineK Offline
      kaxline
      wrote on last edited by
      #10

      @scooke No, it was never working. I've always had to use the HTTPS links for repos.

      Thanks for those links! I'll check them out and post back here if they work.

      girishG 1 Reply Last reply
      0
      • kaxlineK kaxline

        @scooke No, it was never working. I've always had to use the HTTPS links for repos.

        Thanks for those links! I'll check them out and post back here if they work.

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

        @kaxline Does telnet gitlab.mydomain.com port connect? (replace port with your gitlab ssh port). I think if it doesn't connect, it's some firewall/networking issue and we should start from there.

        kaxlineK 1 Reply Last reply
        0
        • girishG girish

          @kaxline Does telnet gitlab.mydomain.com port connect? (replace port with your gitlab ssh port). I think if it doesn't connect, it's some firewall/networking issue and we should start from there.

          kaxlineK Offline
          kaxlineK Offline
          kaxline
          wrote on last edited by
          #12

          @girish Thanks for chiming in here. Indeed telnet gitlab.mydomain.com port hangs for me as well.

          I white listed the port and restarted the cloudron-firewall service, but still no love.

          Any other ideas of what to test/debug?

          mehdiM girishG 2 Replies Last reply
          0
          • kaxlineK kaxline

            @girish Thanks for chiming in here. Indeed telnet gitlab.mydomain.com port hangs for me as well.

            I white listed the port and restarted the cloudron-firewall service, but still no love.

            Any other ideas of what to test/debug?

            mehdiM Offline
            mehdiM Offline
            mehdi
            App Dev
            wrote on last edited by
            #13

            @kaxline Which VPS provider are you using? Are there any other apps that you use which use external ports?

            1 Reply Last reply
            0
            • kaxlineK kaxline

              @girish Thanks for chiming in here. Indeed telnet gitlab.mydomain.com port hangs for me as well.

              I white listed the port and restarted the cloudron-firewall service, but still no love.

              Any other ideas of what to test/debug?

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

              @kaxline there's no need to white list the ports in cloudron-firewall, it's all automatic for the apps. As @mehdi asked, which VPS provider are you using? Some providers like azure/aws ec2/gce block all ports by default. So you have to add the port manually to the security group or equivalent. Other providerse like DO, linode, vultr, usually have everything open by default. But I think these days DO has added some tagging/labeling feature that can be mixed with their firewall to block ports by default for new VPS (not 100% sure about this).

              kaxlineK 1 Reply Last reply
              0
              • girishG girish

                @kaxline there's no need to white list the ports in cloudron-firewall, it's all automatic for the apps. As @mehdi asked, which VPS provider are you using? Some providers like azure/aws ec2/gce block all ports by default. So you have to add the port manually to the security group or equivalent. Other providerse like DO, linode, vultr, usually have everything open by default. But I think these days DO has added some tagging/labeling feature that can be mixed with their firewall to block ports by default for new VPS (not 100% sure about this).

                kaxlineK Offline
                kaxlineK Offline
                kaxline
                wrote on last edited by
                #15

                @girish @mehdi I'm using Netcup, so I guess I'll look into what their policy is unless you know off the top of your head. Actually started using them because people were recommending them after the last online Cloudron meetup I went to.

                girishG 1 Reply Last reply
                0
                • kaxlineK kaxline

                  @girish @mehdi I'm using Netcup, so I guess I'll look into what their policy is unless you know off the top of your head. Actually started using them because people were recommending them after the last online Cloudron meetup I went to.

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

                  @kaxline netcup should have the SSH port open. If you can write to us at support@cloudron.io, we can take a look as to why/where the SSH is getting blocked.

                  1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #17

                    Followed this up on support@, the issue was that the gitlab instance was behind Cloudflare. Cloudflare, of course, cannot proxy non-http ports. This is why the ssh+clone wasn't working. I will look into adding a warning about this when trying to install apps which require a port and a Cloudflare domain is used.

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #18

                      Created https://git.cloudron.io/cloudron/box/-/issues/802

                      1 Reply Last reply
                      0
                      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