Debian

安裝Redmine時無法生成ssh公鑰

  • March 20, 2014

我正在嘗試在我的伺服器上設置 Redmine,並且我正在遵循設置指南。我之前在我的 VPS 上使用過本指南,它執行良好,但是在此伺服器上,當我嘗試生成公鑰時出現以下錯誤。

aristotle:~# sudo su - redmine
No directory, logging in with HOME=/
redmine@aristotle:/$ ssh-keygen -t rsa -N '' -f ~/.ssh/gitolite_admin_id_rsa
Generating public/private rsa key pair.
open //.ssh/gitolite_admin_id_rsa failed: No such file or directory.
Saving the key failed: //.ssh/gitolite_admin_id_rsa.
redmine@aristotle:/$

好的解決了……我只需要做

sudo mkdir .ssh在那個目錄

引用自:https://unix.stackexchange.com/questions/120663