Reputation: 87
I changed the .ssh config file to use port 443 and I checked that it worked:
bash-4.2$ ssh -T [email protected]
Hi keiashford! You've successfully authenticated, but GitHub does not provide shell
access.`bash-4.2
But when trying to clone a repository using ssh over port 443?
bash-4.2$ git clone ssh://[email protected]/keiashford/getexorcism-ssh htdocs
Cloning into 'htdocs'...
ssh: connect to host ssh.github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I cant use port 22 because im already using ssh to get into this remote computer
Upvotes: 0
Views: 1234
Reputation: 437
You need to add new a config file at ~/.ssh
if you do not have it yet, insert like below
Host github.com
Hostname ssh.github.com
Port 443
After, you can run ssh -T [email protected] to confirm if the issue is fixed. The result will be
Hi xxxx! You've successfully authenticated, but GitHub does not provide shell access.
Hopefully, this helps you.
Upvotes: 2
Reputation: 2974
Your outgoing destination port 22 is filtered. Check with sudo iptables -L OUTPUT
if you don't want to bother with the firewall or git config, you can just git clone ssh://[email protected]:443/keiashford/getexorcism-ssh htdocs
Upvotes: 0