Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
courses
Git course
Commits
0487a191
Commit
0487a191
authored
Mar 08, 2019
by
Mihai Lefter
Browse files
Clarify ssh key generation.
parent
b64b0944
Changes
1
Hide whitespace changes
Inline
Side-by-side
remotes/remotes_handouts.tex
View file @
0487a191
...
...
@@ -23,14 +23,9 @@ Please take the following into account with respect to our GitLab server:
page.
\end{itemize}
It is convenient to set up an ssh key on GitLab. Make one as follows (you can
leave all fields blank):
\begin{lstlisting}
$
ssh
-
keygen
Enter file in which to save the key
(/
home
/
<username>
/
.ssh
/
id
_
rsa
)
:
Enter passphrase
(
empty for no passphrase
)
:
Enter same passphrase again:
\end
{
lstlisting
}
\subsubsection*
{
SSH Keys on GitLab
}
It is convenient to set up an ssh key on GitLab.
\medskip
Open
\url
{
https://git.lumc.nl
}
in your browser and log in.
...
...
@@ -40,14 +35,28 @@ Click on your avatar (top-right corner), choose ``Settings'', and then go the
``SSH Keys'' page.
\medskip
Copy your ssh key, retrieved with the following
\lstinline
{
cat
}
command, and
paste it in the ``Key'' field:
Go to your terminal (or putty) and make an SSH key, as follows (you can leave
all fields that require an input blank, i.e., press enter):
\medskip
\prompt\ \cmd
{
ssh-keygen
}
\begin{lstlisting}
$
cat ~/.ssh/id
_
rsa.pub
Enter file in which to save the key (/home/<username>/.ssh/id
_
rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
\end{lstlisting}
\medskip
Give your key a title (e.g., ``Course machine'') and press the ``Add key''
You can now retrieve your ssh key with the following
\lstinline
{
cat
}
command:
\medskip
\prompt\ \cmd
{
cat
}
$
\sim
$
\cmdarg
{
/.ssh/id
\_
rsa.pub
}
\medskip
Copy the key and paste it in the ``Key'' field on the GitLab page.
\medskip
Give your key a title, e.g., ``Course machine'', and press the ``Add key''
button.
\bigskip
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment