Skip to content

Instantly share code, notes, and snippets.

@rajitha-bandara
Last active August 13, 2018 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajitha-bandara/fe35c7f887f991f9fdebe72a609967b6 to your computer and use it in GitHub Desktop.
Save rajitha-bandara/fe35c7f887f991f9fdebe72a609967b6 to your computer and use it in GitHub Desktop.
Generate ssh in web server
go to /var/www
sudo -u www-data ssh-keygen
sudo cat .ssh/id_rsa.pub
set this in gitlab deployment keys
sudo -u www-data mkdir xxxxxx
sudo -u www-data git clone -b dev git@gitlab.com:xxxxxxxxxxxxxxxxxxxx.git .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment