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

Problem with MacOS Sierra

Open matfiz opened this issue 7 years ago • 4 comments

After installing it on my host (MacOS Sierra v. 10.12.6 (16G29)), when I fire pinata-ssh-forward it gives no output. After commenting out line 2 set -eo pipefail, I get the prompt asking for password:

ssh-agent
Connection to 127.0.0.1 port 2244 [tcp/nmsserver] succeeded!
[email protected]'s password:
Permission denied, please try again.

What is wrong with my setup? :)

matfiz avatar Aug 04 '17 12:08 matfiz

Hard to tell exactly what's wrong with your setup -- but I had the same output and noted that when I ran ssh-add -L, the output was "The agent has no identities."

I fixed it by running ssh-add and addressing its complaints about my private key (file permissions were too permissive for its taste).

foster avatar Aug 23 '17 03:08 foster

@matfiz can you try again with the latest version?

Please include the full output of these commands:

ssh-add -l
bash -x pinata-ssh-forward.sh

BlinkyStitt avatar Dec 18 '17 23:12 BlinkyStitt

I have the same issue as this one i guess

rattletrap:~ bas$ ssh-add -l
2048 SHA256:3GFnIy4rK2DssixkIMjV1KST4nnj7HT3HIr355Rma4w /Users/bas/.ssh/id_rsa (RSA)
rattletrap:~ bas$ bash -x pinata-ssh-forward.sh
bash: pinata-ssh-forward.sh: No such file or directory

but this does do something, never ends though

rattletrap:~ bas$ bash -x pinata-ssh-forward
+ set -eo pipefail
+ IMAGE_NAME=uber/ssh-agent-forward:latest
+ CONTAINER_NAME=pinata-sshd
+ VOLUME_NAME=ssh-agent
+ HOST_PORT=2244
++ ssh-add -L
++ base64
++ tr -d '\n'
+ AUTHORIZED_KEYS=c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFEYjdFYkY2OVFFamZMdUxuOUtESjlKUHRQUFlnbmgvTjVmVk5Fb1EyRkdLWXdNMlpIUEx2QnFJbzRpYjhpaVIxbUw3ZldHWSt6QjVvRnRnZjlsZEFpU0ZiWWdSRzJqYU1FTVl1cy9JM0ovMitOSmZ1VjVndHZaSDRGYlVPSU5JWDJwQUIreCthWmx5ZS9HWXhhZ01zaE1oVlhoN1pCUUs2Z3FWOVZhTzNHUjA3Q3FObGJjSnlQdlJpT0IvMXBYSmU5cTVxRldFeEFKbnozclorOFROV0tpUHRkWGR4Q3h0YXlFdGZuaVcwQ3NtNlQzRU1ONmpkakNrcm9GOEM5bmtKSTdxQ3VOWmwvY0ZrdVoxMm92Z25SYTFuWWVJWi9yTGFrYUZjZ0FpbGs4dWl4U1JDalB4dUVwVGlrSDErQ04zSDZKYjR0T2twdFZjQSthdTNDTm5SLy8gL1VzZXJzL2Jhcy8uc3NoL2lkX3JzYQo=
++ mktemp -t dsaf.XXX
+ KNOWN_HOSTS_FILE=/var/folders/56/99fk35bd6f576y9wtfyx6prw0000gn/T/dsaf.XXX.KEZ7Tlaf
+ trap 'rm ${KNOWN_HOSTS_FILE}' EXIT
+ docker rm -f pinata-sshd
^C++ rm /var/folders/56/99fk35bd6f576y9wtfyx6prw0000gn/T/dsaf.XXX.KEZ7Tlaf

basz avatar Mar 18 '18 14:03 basz

rebooted and reinstalled this, now everything seems to work

basz avatar Mar 18 '18 16:03 basz