gitlab ssh port 22, anyway to do this?
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)/
nebulon 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
chris last edited by
interesting.. let me try that...
girish last edited by
Be sure to move SSH to a different port first using https://cloudron.io/documentation/security/#securing-ssh-access.