我在运行CentOS7的VPS上安装了Dokku。当我'git推dokku大师'我得到...
ssh dokku@mydomain.com
cat: /home/dokku/.sshcommand: No such file or directory
Connection to mydomain.com closed.
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
当我尝试ssh时,我也得到同样的错误......
dokku apps:create trial
cat / var / log / secure ...
dokku ssh-keys:add dokku id_rsa.pub
在推送之前,我正在服务器上创建应用程序......
{{1}}
要将我的公共ssh密钥添加到我使用{{1}}
的服务器查看另一个答案CTExternalLink.isSetDdeLink,似乎我实际上在/ home / dokku /中缺少.sshcommand。关于如何解决这个或可能出错的任何想法?在过去的几天里,这让我发疯了。
答案 0 :(得分:2)
您必须在某个时候将其删除。运行以下命令以重新设置所有内容:
echo '/usr/bin/dokku' > /home/dokku/.sshcommand
chmod 0644 /home/dokku/.sshcommand
chown dokku:root /home/dokku/.sshcommand