LF Network


This doc is relevant to LF staff who have access to the VPN network.

To bootstrap an image inside the LF network the packer configuration contains an ssh_proxy_host variable to connect to a SOCKS5 proxy through a known system such as Jenkins to connect to the VM instance on the network.

Connect through the LF network

  1. Connect to the VPN

  2. Set ssh_proxy_host to in vars/cloud-env.json

  3. Create a SOCKS 5 proxy on port 1080

    ssh -fND 1080 vex-yul-odl-jenkins-2.ci.codeaurora.org

    Replace the server vex-yul-odl-jenkins-2.ci.codeaurora.org with a known server for the relevant project.

  4. Run packer as usual


If forwarding your ssh-agent and you have more than one ssh key, you may see this error message:

Failed to connect to the host via ssh: Warning: Permanently
  added '[]:44502' (RSA) to the list of known hosts.
Received disconnect from port 44502:2: too many
  authentication failures
packet_write_wait: Connection to port 44502: Broken pipe
muxclient: master hello exchange failed
Failed to connect to new control master

To resolve this start the ssh SOCKS proxy with your agent first, stop your agent, then run packer.


If you would like to be able to ssh directly to a dynamic system inside of the LF Network add the following to ~/.ssh/config:

Host 10.30.18*
  ProxyCommand ssh vex-yul-acumos-jenkins-2.ci.codeaurora.org nc %h 22
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null

Replace the server vex-yul-acumos-jenkins-2.ci.codeaurora.org with a known server for the relevant project.