LoginSignup
124
89

More than 5 years have passed since last update.

[ssh, git] git や ssh で Bad owner or permissions とエラーが出たら。

Posted at

エラー

git を使ってこんなエラーが出ました。

$ git push heroku master
----

Bad owner or permissions on /home/hoge/.ssh/config
fatal: The remote end hung up unexpectedly

対応

とりあえず、ls -la とかして、パーミッションと所有者を確認してみます。
でも大抵の場合は以下で解決しそうです。

$ chmod 600 ~/.ssh/config
124
89
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
124
89