Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Can't connect to Gitlab.e.foundation after adding SSH key

Can't connect to gitlab.e.foundation after adding SSH key

Summary

I generated and added an SSH key as described here: https://gitlab.e.foundation/help/ssh/README but I can't connect to gitlab.e.foundation

Steps to reproduce

Follow the steps described here: https://gitlab.e.foundation/help/ssh/README

What is the current behavior?

I tried to use ssh -T git@gitlab.e.foundation to confirm it was working but got prompted for a password and after trying my passwords I gave up.

Then I tried with madbilly@gitlab.e.foundation but after the second password attempt the servers stopped listening to me: Connection closed by 51.15.199.78 port 22

Next time I tried to connect I got: ssh: connect to host gitlab.e.foundation port 22: Connection refused

What is the expected correct behavior?

I believe that I should be able to connect and get a "Welcome to Gitlab" message.

Relevant logs and/or screenshots (identifiable info removed)

Generating public/private rsa key pair.
Enter file in which to save the key (/home/me/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/me/.ssh/id_rsa.
Your public key has been saved in /home/me/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256: [deleted] myemail@e.email
The key's randomart image is:
[deleted]
me@mycomputer:~/.ssh$ xclip -sel clip < id_rsa.pub
me@mycomputer:~/.ssh$ ssh -T git@gitlab.e.foundation
The authenticity of host 'gitlab.e.foundation (51.15.199.78)' can't be established.
ECDSA key fingerprint is SHA256:[deleted].
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab.e.foundation,51.15.199.78' (ECDSA) to the list of known hosts.
git@gitlab.e.foundation's password: 
Permission denied, please try again.
git@gitlab.e.foundation's password: 
Permission denied, please try again.
git@gitlab.e.foundation's password: 

me@mycomputer:~/.ssh$ ssh -T madbilly@gitlab.e.foundation
madbilly@gitlab.e.foundation's password: 
Permission denied, please try again.
madbilly@gitlab.e.foundation's password: 
Connection closed by 51.15.199.78 port 22
me@mycomputer:~/.ssh$ ssh -T git@gitlab.e.foundation
ssh: connect to host gitlab.e.foundation port 22: Connection refused
me@mycomputer:~/.ssh$ ssh -T git@gitlab.e.foundation
ssh: connect to host gitlab.e.foundation port 22: Connection refused
me@mycomputer:~/.ssh$ 

Possible fixes

Update the README with the correct process, or tell me where I've gone wrong :D