A fragment of my ssh config:

Host jenkins-saas
    HostName ec2-54-76-192-175.eu-west-1.compute.amazonaws.com
    ProxyCommand ssh -i ~/.ssh/axway/id_rsa_axway_mac [email protected]<your office machine IP> -W %h:%p
    User ec2-user
    LocalForward 7777 localhost:8080
    IdentityFile ~/.ssh/axway/id_rsa_v8
HostName - Jenkins host running in the aws management vpc
<your office machine IP> - IP address of your office machine
jakub - user name
id_rsa_axway_mac - prv ssh key that allows to connect from the laptop to the office PC
ec2-user - default user of the aws host (jenkins)
7777 - port we can access jenkins UI on the laptop
8080 - jenkins port
id_rsa_v8 - prv ssh key on the laptop (the key allows to ssh to the jenkins host)

ssh to the jenkins machine

$ ssh jenkins-saas
Last login: Fri Jun  2 13:25:26 2017 from

       __|  __|_  )
       _|  (     /   Amazon Linux AMI


Access Jenkins UI on my macbook:

url: localhost:7777

References: https://superuser.com/questions/107679/forward-ssh-traffic-through-a-middle-machine https://superuser.com/questions/96489/an-ssh-tunnel-via-multiple-hops#97007