I get the feeling this is going to boil down to a fundamental misunderstanding of SSH keys, but I cannot seem to pinpoint why I can no longer git push dokku master
to my Dokku + Docker setup on Digital Ocean. I followed this tutorial to a tee when I initially set up my droplet and I was able to deploy to Dokku just fine until I poked around in the container and somehow crippled Docker and/or Dokku (still trying to understand those as well...). I doubt it was irreparable but I grew impatient so I just wiped out the entire droplet and started the tutorial over from scratch.
This time, however, after setting everything back up exactly the same way, I can SSH into "root@mydomain.com" just fine, but I cannot push to Dokku. Instead, after waiting an eternity, I get:
failed: Broken pipe
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Checking the /var/log/auth.log
I see that a session indeed gets established:
Jan 8 00:56:39 localhost sshd[19559]: Accepted publickey for dokku from 79.113.124.516 port 56067 ssh2
Jan 8 00:56:39 localhost sshd[19559]: pam_unix(sshd:session): session opened for user dokku by (uid=0)
I've tried to make heads or tails of this post but to no avail. I feel like it must have something to do with the fact that I wiped out the entire VM droplet and replaced it (however it still has the same IP). I removed the connection from ~/.ssh/known_hosts
and re-added it when I SSH'd in again to the new instance for the first time (which works fine). I also followed the README steps for configuring Dokku. Nothing. Which is odd to me because I never had to do any of this the first go round. Any ideas?