Hi, is this post still valid? I got the error below that the
/user/.ssh directory doesn’t exist:
I, [2017-10-02T11:09:05.337068 #13] INFO -- : > echo "Host github.com\n\tStrictHostKeyChecking no\n" >> /user/.ssh/config
sh: 1: cannot create /user/.ssh/config: Directory nonexistent
I, [2017-10-02T11:09:05.344774 #13] INFO -- :
Pups::ExecError: echo "Host github.com\n\tStrictHostKeyChecking no\n" >> /user/.ssh/config failed with return #<Process::Status: pid 13963 exit 2>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params "echo \"Host github.com\\n\\tStrictHostKeyChecking no\\n\" >> /user/.ssh/config"
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
mkdir /user/.ssh before that didn’t work, so I’m honestly not even sure if my docker is running as
user (having it run a
whoami shows it’s running as
root so I’m trying to change things to reflect that)…
UPDATE: Got it working
- Change all mentions of
/root/ (unless it’s not supposed to be running as root?!)
mkdir /root/.ssh and
chmod 700 ./root/.ssh before the
.ssh/config file creation
So now I’m wondering if my docker running as root is a bad thing, or if the instructions above need to be updated just slightly.