0

I am using SSH agent forwarding to connect to my hosting and the application is dockerized. I now want to forward the agent on to docker, so from local -> server -> docker. Agent forwarding from local to serve is working, what should be done for the next step?

xelber
  • 4,197
  • 3
  • 25
  • 33

1 Answers1

0

You may set up a ssh server in the container, and then use ProxyJump to forward the agent.

ssh -A -J <server_ip> <container_ip>

Or, in ~/.ssh/config

Host Server
    Hostname <server_ip>

Host App
    Hostname <container_ip>
    ProxyJump Server
    ForwardAgent yes

Then, ssh App to connect and forward your agent to the container.

alan125999
  • 34
  • 4