# Jump host and ansible\_ssh\_private\_key\_file

**URL:** <https://forum.ansible.com/t/jump-host-and-ansible-ssh-private-key-file/26221>\
**Category:** Ansible Project\
**Created:** [December 7, 2017, 4:44pm UTC](https://forum.ansible.com/t/jump-host-and-ansible-ssh-private-key-file/26221 "2017-12-07T16:44:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![autogun](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@autogun](https://forum.ansible.com/u/autogun)\
**Post date:** [December 7, 2017, 4:44pm UTC](https://forum.ansible.com/t/jump-host-and-ansible-ssh-private-key-file/26221/1 "2017-12-07T16:44:47Z")

</div>

Hey there,

I’ve been following the documentation on how to configure a jump host to access servers which can be found [here](http://docs.ansible.com/ansible/latest/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to).

My jump server has the private keys needed to access different servers so when I try to set my hosts file to:

[gatewayed]

foo ansible\_user=boo ansible\_host=192.0.2.1 ansible\_ssh\_private\_key\_file=/path/to/private.key

I get “key\_load\_public: No such file or directory” as it’s trying to locate the file on the ansible host and not on the jump server itself.

Can you suggest a way to use private keys located on the jump server using ansible\_ssh\_common\_args as per documentation?

Thanks,
