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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved gitlab ssh port 22, anyway to do this?

    GitLab
    3
    4
    449
    Loading More Posts
    • 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.
    • chris
      chris last edited by chris

      Is there anyway to have gitlab ssh be on standard port 22?
      We use automatic deployment tools that do not yet support non standard SSH ports making (laravel forge for example)/

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        This is currently not supported. Port 22 is one of the hardcoded reserved ones. I am not sure if it may work, but if you do not have sshd running on that port, then you may be able to create a custom iptables rule, which does the portmapping from 22 to the one used by gitlab. Maybe https://www.cyberciti.biz/faq/linux-port-redirection-with-iptables/ helps here, especially:

        iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 22 -j REDIRECT --to-port 8080
        
        1 Reply Last reply Reply Quote 0
        • chris
          chris last edited by

          interesting.. let me try that...

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            Be sure to move SSH to a different port first using https://cloudron.io/documentation/security/#securing-ssh-access.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB