Author: Friedjof Noweck
*write a comment if you have any questions or suggestions
After this guide you should be able to connect to the Rechnerhalle
via SSH without a password or username like this:
ssh tum
- Create a SSH key pair
- Copy the public key to the
Rechnerhalle
- Configure SSH
First you need to create a SSH key pair. This can be done with the following command:
Press enter to use all default values (you also don't need to enter a password)
ssh-keygen
Now you need to copy the public key to the Rechnerhalle
. This can be done with the following command:
ssh-copy-id <your-rbg-user>@halle.in.tum.de
or if you don't have ssh-copy-id
installed:
cat ~/.ssh/id_rsa.pub | ssh <your-rbg-user>@halle.in.tum.de "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
Edit the SSH config file:
nano ~/.ssh/config
and add the following lines:
Host tum
HostName halle.in.tum.de
User <your-rbg-user>
Now you should be able to connect to the Rechnerhalle
via SSH without a password or username like this:
ssh tum
Alternatively you can set an alias in your .bashrc
file:
alias ssh-tum="ssh <your-rbg-user>@halle.in.tum.de"
and connect to the Rechnerhalle
via SSH like this:
ssh-tum
Use the SSH link from Artemis to clone your repository in the future and you don't need to enter your password anymore. You can also use this SSH key pair to the TUM Bitbucket server. Just copy the public key to your Bitbucket account.
- Follow this Link
- Click on
Add key
- Copy the public key to the
Key
field (Usecat ~/.ssh/id_rsa.pub
to get the public key) - Add a
Label
(e.g.<pc-name>
) - Click on
Add key
Now you should be able to clone your repository via SSH without a password or username like this:
git clone git@<your-repository-url>
Very cool, I always wondered if there is a way to get rid of the annoying copy/pasting of the Artemis Git password every time I push something. Thanks!