初めまして。
githubのリポジトリをcloneすると、以下のエラーが出ますので、
無事cloneできるようにしたいです。
$ git clone git@github.com:mark041621/event-post.git Cloning into 'event-post'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
xserverにssh接続をした状態で行なっています。
参考にしているサイトは以下です。
XSERVERでssh接続→git最新版インストール→php5.6でlaravel deployまで
この記事の、「deploy、composerの実行、laravel setup」という項目のcloneしている箇所で止まっています。
○試したこと
・eval ssh-agent
の実行
$eval `ssh-agent` $ssh-add ~/.ssh/id_rsa
こちらは実行しています。
上記実行後、以下を確認をしています。
ssh -T git@github.com Hi NAME! You've successfully authenticated, but GitHub does not provide shell access.
・github側へのssh keyの設定
以下のサイトも参考にして、設定を行なっています。
GithubにSSHで接続し、リポジトリを作成する
作業はmacOSで行なっています。
また、以前に同じmacでgithubにアクセスしていたので、キーチェーンアクセスにgithubの項目がありました。そちらを削除してから再度行いましたが、結果は同じでした。
他に何か、エラーの解決に必要な情報があれば教えてください。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー