2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ssh: connect to host heroku.com port 22: Connection refusedが出た場合の対処方法

Posted at

ssh接続したのにgit pullとかしたときに
こんなのが出た時↓

ssh: connect to host heroku.com port 22: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

多分sshでつながっていないだけ。

git remote -v

これでremoteのurlの一覧が出てくるので
そこがhttpsになってないはず

git remote set-url test-stg https://git.heroku.com/test-stg.git

みたいにやればOKだと思う。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?