docker-ssh-agent-forward icon indicating copy to clipboard operation
docker-ssh-agent-forward copied to clipboard

Doesn't seem to work on MacOS Sierra

Open gdiggs opened this issue 9 years ago • 10 comments

Ever since upgrading to Sierra, this doesn't work for me anymore. Anyone else seeing this / have a workaround?

gdiggs avatar Jan 10 '17 23:01 gdiggs

It think it used to work for me on Sierra, but now it isn't working anymore. I'm on Sierra 10.12.2 and Docker Version 1.13.0-beta38 (15084). I'm going to try to go through backups and see what version of Docker last worked

$ docker --version
Docker version 1.13.0, build 49bf474
$ pinata-ssh-mount
cat: /Users/bwstitt/.pinata-sshd/agent_socket_path: No such file or directory
-v /Users/bwstitt/.pinata-sshd/:/tmp/ssh-agent.sock --env SSH_AUTH_SOCK=/tmp/ssh-agent.sock

$ ls ~/.pinata-sshd
known_hosts

BlinkyStitt avatar Jan 24 '17 00:01 BlinkyStitt

@GordonDiggs what's the error you're seeing? I'm not sure if this is related, but I started seeing:

docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/usr/bin/tini\": stat /usr/bin/tini: no such file or directory"

Also using docker 1.13.0, git commit 49bf474, but OS X Yosemite 10.10.5

ABaldwinHunter avatar Jan 27 '17 16:01 ABaldwinHunter

@ABaldwinHunter the tini error is fixed by https://github.com/avsm/docker-ssh-agent-forward/pull/7.

Unfortunately, that fix wasn't enough for me. Now the container just uses 200% CPU as soon as I try to ssh in.

BlinkyStitt avatar Jan 27 '17 20:01 BlinkyStitt

I fixed my local system!

Something was wrong inside Docker. I updated to the latest version (1.13.0) and then went into preferences and clicked the "Reset" bomb and then "Reset to factory defaults" and now its working again (well after I did a bunch of other cleanup things on https://github.com/uber-common/docker-ssh-agent-forward)

BlinkyStitt avatar Jan 27 '17 20:01 BlinkyStitt

@WyseNynja thanks for the update! glad your system is working well. Going to try out the bug fix you mentioned and see how it goes

ABaldwinHunter avatar Jan 27 '17 20:01 ABaldwinHunter

PR #15 includes the fix linked by @WyseNynja.

chad-10e avatar Apr 14 '17 21:04 chad-10e

Just reset docker to factory defaults (17.0.3.1-ce-mac5) and still have the same issue:

docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/usr/bin/tini\": stat /usr/bin/tini: no such file or directory".

jeffrey-aguilera avatar May 04 '17 20:05 jeffrey-aguilera

#15 fixed the error above. But now I get this error: ssh_exchange_identification: Connection closed by remote host

micmart avatar Jun 21 '17 13:06 micmart

Also hitting this unfortunately.

rawrgulmuffins avatar Sep 11 '19 23:09 rawrgulmuffins

@rawrgulmuffins Try my fork: https://github.com/uber-common/docker-ssh-agent-forward

BlinkyStitt avatar Sep 11 '19 23:09 BlinkyStitt