Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
lecture
lecture
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • pt1_hs20
  • lecturelecture
  • Wiki
  • ssh keys

Last edited by pollakg Sep 29, 2020
Page history

ssh keys

Assuming you installed all the necessary basic tools from exercise 01

  1. Change to your home directory by typing:
cd
  1. Check if the hidden folder .ssh exist by typing:
ls -a

Note: the -a options shows hidden files that start with a dot 3. If it does not exist create the folder by running:

mkdir .ssh
  1. Change into the folder
cd .ssh
  1. Create the ssh-key by issuing the command:
ssh-keygen -t rsa 

It will ask you:

  • to specify the filename: (if you don't have any other keys leave it as it is) and press enter
  • enter a passphrase: leave it empty and press enter twice
  1. Print the public key: by typing:
cat id_rsa.pub

Note:

  • if you chose another name replace id_rsa
  • the pub extension is the public key
  1. Copy the whole public key out put starting with ssh-rsa and including everything until the end
  2. Go to your gitlab project site, click on your icon and then under settings
  3. On the left hand side in the panel click on SSH Keys and add your ssh key
Clone repository
  • exercise02
  • exercise03
  • exercise09
  • git ssh
  • Home
  • ssh keys
  • ssh_config