SSH 超时错误无法从远程存储库读取

SSH Timeout Error Could not read from remote repository

我正在尝试将项目推送给 dokku master。我只是简单地使用 dokku 设置教程,当我到达这个阶段时

git push dokku master

我收到一条消息

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

所以在我的搜索中我看到我应该将我的 ssh 配置文件更改为这个

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

这仍然给出相同的错误。

当我使用命令时

ssh -T git@github.com

我收到这条消息

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.

关于为什么我无法连接到端口 22 或端口 443 的任何线索?它是我家里的本地机器,所以两个端口都不应被阻止

dokku.me 主机名是 Dokku 文档中用来指代您的服务器的示例主机名。设置 git 远程时,应将其替换为服务器的 IP 地址或关联的主机名。例如:

# dokku docs
git remote add dokku dokku@dokku.me: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 dokku@10.0.0.2:example-app

# or the following if you are using a hostname
git remote add dokku dokku@your-hostname.com:example-app