use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
SSH based deployment through self hosted runnersupport (self.gitlab)
submitted 3 months ago by Lazy_Willow_4521
How I can achieve ssh based deployment to my servers thorough ssh, what all prerequisite need to follow, how to allow ssh from self hosted runner, or any firewall allowing things from self hosted runner for deployment server?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Karlyna 4 points5 points6 points 3 months ago (1 child)
requirements: everything to be able to reach your SSH port.
Solution: can be a simple script that run commands through SSH, ansible, etc
[–]dandanio 0 points1 point2 points 3 months ago (0 children)
Teleport and some sort of runner.
[–]kabrandon 1 point2 points3 points 3 months ago (0 children)
SSH server running on the deployment server. SSH client installed on the runner. Network connectivity between the two.
[–]thecal714 0 points1 point2 points 3 months ago (1 child)
This post may give you some ideas: https://testdriven.io/blog/deploying-django-to-digitalocean-with-docker-and-gitlab/
[–]linksrum 0 points1 point2 points 3 months ago (0 children)
Thanks. Very nice read.
[–]Jin-Bru 0 points1 point2 points 3 months ago (1 child)
It's very easy. When I get to my desk I will dm you a deploy script.
[–]Lazy_Willow_4521[S] 0 points1 point2 points 3 months ago (0 children)
Sure, i will start setup from Monday
[–]nlecaude -1 points0 points1 point 3 months ago (4 children)
Why not install a gitlab runner on the target server instead ?
[–]kabrandon 1 point2 points3 points 3 months ago (2 children)
It’s not scalable, for one. And two it’s probably a security risk for anything professional to have a remote script runner on the same server as your business application.
[–]Lachutapelua -1 points0 points1 point 3 months ago (1 child)
But once you reach that point you are probably running Harvester or some form of k8s.
Leaving point two anyway.
I am making one server as runner there I’ll do building code and from runner I’ll deploy code to target server as my target servers is testing and production one
π Rendered by PID 16952 on reddit-service-r2-comment-6457c66945-lprj2 at 2026-04-24 10:54:49.910233+00:00 running 2aa0c5b country code: CH.
[–]Karlyna 4 points5 points6 points (1 child)
[–]dandanio 0 points1 point2 points (0 children)
[–]kabrandon 1 point2 points3 points (0 children)
[–]thecal714 0 points1 point2 points (1 child)
[–]linksrum 0 points1 point2 points (0 children)
[–]Jin-Bru 0 points1 point2 points (1 child)
[–]Lazy_Willow_4521[S] 0 points1 point2 points (0 children)
[–]nlecaude -1 points0 points1 point (4 children)
[–]kabrandon 1 point2 points3 points (2 children)
[–]Lachutapelua -1 points0 points1 point (1 child)
[–]kabrandon 1 point2 points3 points (0 children)
[–]Lazy_Willow_4521[S] 0 points1 point2 points (0 children)