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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

gitlab ssh port 22, anyway to do this?

Scheduled Pinned Locked Moved Solved GitLab
4 Posts 3 Posters 494 Views
    • 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.
  • chrisC Offline
    chrisC Offline
    chris
    wrote on last edited by chris
    #1

    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
    0
  • nebulonN Offline
    nebulonN Offline
    nebulon Staff
    wrote on last edited by
    #2

    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
    0
  • chrisC Offline
    chrisC Offline
    chris
    wrote on last edited by
    #3

    interesting.. let me try that...

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

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

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.