Railsアプリケーションのデプロイに取り組んでいます。
サーバーに Gitosis をセットアップしました。Git ユーザーが起動していて、既にサーバーに「デプロイ」ユーザーがいます! サーバー上のデプロイユーザーからローカルマシンへの「git clone」でした。Gitosis をセットアップした後、サーバー (git ユーザー) から「git clone」することもできます。
私が欲しいのは、サーバー内の「git clone」から「git clone」して「git」ユーザーから「deploy」ユーザーにすることです!
ここで写真の問題。
この問題がsshパーミッションなどにあることはすでに知っています。なぜなら、デプロイユーザーで「git clone」しようとすると、
Initialized empty Git repository in /home/deploy/some_folder/.git/
The authenticity of host '[178.xx.xx.xx]:30000 ([178.xx.xx.xx]:30000)' can't be established.
RSA key fingerprint is dc:f3:53:35:xx:xx:xx:f7:62:4c:e3:68:7e:70:46:cb.
Are you sure you want to continue connecting (yes/no)? ( MY ANSWER yes )
Failed to add the host to the list of known hosts (/home/deploy/.ssh/known_hosts).
git@178.xx.xx.xx's password:
この問題を解決するために私がしなければならないことを教えてください!
前もって感謝します!