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-keygenNow 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.deor 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/configand 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 tumAlternatively 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-tumUse 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
Keyfield (Usecat ~/.ssh/id_rsa.pubto get the public key) - Add a
Label(e.g.<pc-name>) - Click on
Add keyNow 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!