我已经在运行CentOS7的VPS上安装了Dokku。当我“git推独酷大师”的时候,我得到...
git remote set-url dokku dokku@mydomain.com:trial
git push dokku master cat: /home/dokku/.sshcommand: No such file or directory fatal: ''trial'' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
当我尝试ssh in时,我也得到了同样的错误...
ssh dokku@mydomain.com cat: /home/dokku/.sshcommand: No such file or directory Connection to mydomain.com closed.
cat /var/log/secure ... Nov 7 10:06:29 Callisto sshd[19912]: Accepted publickey for dokku from xxx.xxx.xxx.xxx port 50002 ssh2: RSA SHA256:Y0ueDcZEJWQd9H3FsetReYTDPwJPob6zm9p4Dpt4fOE Nov 7 10:06:29 Callisto sshd[19912]: pam_unix(sshd:session): session opened for user dokku by (uid=0) Nov 7 10:06:29 Callisto sshd[19914]: Received disconnect from xxx.xxx.xxx.xxx port 50002:11: disconnected by user Nov 7 10:06:29 Callisto sshd[19914]: Disconnected from xxx.xxx.xxx.xxx port 50002 Nov 7 10:06:29 Callisto sshd[19912]: pam_unix(sshd:session): session closed for user dokku
在推送之前,我正在服务器上创建应用程序...
dokku apps:create trial
为了将我的公共ssh密钥添加到服务器,我使用了dokku ssh-keys:add dokku id_rsa.pub
看一下另一个答案here,似乎我实际上在/ .sshcommand /dokku/中遗漏了.sshcommand。有没有关于如何修复这个问题的想法,或者什么地方可能出了问题?这几天我都快疯了。
发布于 2017-11-24 08:03:03
您一定是在某个时候删除了它。运行以下命令重新设置所有内容:
echo '/usr/bin/dokku' > /home/dokku/.sshcommand
chmod 0644 /home/dokku/.sshcommand
chown dokku:root /home/dokku/.sshcommandhttps://stackoverflow.com/questions/47155739
复制相似问题