Category : ssh-agent

I created a Docker container and run it via shell script which contain this execution: docker run –rm -it –user $(id -u):$(id -g) –network host -e USER=$USER -e HOME=$HOME -h $HOSTNAME -v /tmp:/tmp -v /home/$USER:/home/$USER -v ~/.ssh:/home/$USER/.ssh:ro -e USERNAME=$USERNAME -w /home/$USER $IMAGE_NAME /bin/bash Therefore, I think there is neither right access nor key existence issue. ..

Read more

While trying to work on dev containers I created an image as part of the flow i use paramiko for ssh connection with other machine when running the image from powershell terminal everything works fine but when the image runs from vscode the code fails on SSHException: lost ssh-agent with SSHClient("{ip}", ‘{name}’, ‘{password}’) as ssh: ..

Read more

So I’m trying to create an image, which adds a SSH private key to /tmp, runs ssh-agent on it, does a git clone and then deletes the key again. This is the idea I’m trying to accomplish Dockerfile: FROM node:4.2.4 MAINTAINER Me CMD ["/bin/bash"] ENV GIT_SSL_NO_VERIFY=1 ENV https_proxy="httpsproxy" ENV http_proxy="httpproxy" ENV no_proxy="exceptions" ADD projectfolder/key /tmp/ ..

Read more