Terrance Jackson
Terrance Jackson

Reputation: 1079

SSH Timeout Error Could not read from remote repository

I am trying to push a project to dokku master. I am simply using the dokku setup tutorial and when I get to this stage

git push dokku master

I am greeted with a message

ssh: connect to host dokku.me port 22: Connection timed out
fatal: Could not read from remote repository

So in my searching I saw that I should change my ssh config file to this

# GITHUB
Host github.com
   Hostname ssh.github.com
    Port 443

This still give the same error.

When I use the command

ssh -T [email protected]

I get this message

warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512)
Hi XXXX You've successfully authenticated, but GitHub does not provide shell access.

Any clue as to why I cannot connect to either port 22 or port 443? Its my local machine at home so neither port should be blocked

Upvotes: 1

Views: 1172

Answers (1)

Jose Diaz-Gonzalez
Jose Diaz-Gonzalez

Reputation: 2242

The dokku.me hostname is an example hostname used within the Dokku docs to refer to your server. When setting your git remote, you should replace it with either the IP address of your server or an associated hostname. For example:

# dokku docs
git remote add dokku [email protected]:example-app

# should instead be the following if using a server ip
# replace 10.0.0.2 with your server's IP
git remote add dokku [email protected]:example-app

# or the following if you are using a hostname
git remote add dokku [email protected]:example-app

Upvotes: 5

Related Questions