Configure git in Carlitos - vicgalle/wiki-example GitHub Wiki

Problem: Carlitos uses SSH through the port 5555 instead of the usual one, 22. This causes that git doesn't work properly.

The solution can be found in:

https://help.github.com/en/articles/using-ssh-over-the-https-port.

Solution

To test if SSH over the HTTPS port is possible, run this SSH command:

$ ssh -T -p 22 [email protected]
> Hi username! You've successfully authenticated, but GitHub does not
> provide shell access.

If you are able to SSH into [email protected] over port 22, you can override your SSH settings to force any connection to GitHub to run though that server and port.

To set this in your ssh config, edit the file at ~/.ssh/config, and add this section:

Host github.com
    Hostname ssh.github.com
    Port 22