# Keypair onpenstack and privatekeyfile api

**URL:** <https://forums.suse.com/t/keypair-onpenstack-and-privatekeyfile-api/3245>\
**Category:** Rancher 1.x\
**Created:** [June 29, 2016, 5:16pm UTC](https://forums.suse.com/t/keypair-onpenstack-and-privatekeyfile-api/3245 "2016-06-29T17:16:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rhoa](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@Rhoa](https://forums.suse.com/u/Rhoa)\
**Post date:** [June 29, 2016, 5:16pm UTC](https://forums.suse.com/t/keypair-onpenstack-and-privatekeyfile-api/3245/1 "2016-06-29T17:16:11Z")

</div>

hi,

I would like use rancher api for create onpenstack. But i don’t understand where i Can put the key file for “privateKeyFile” .  
I need use like this : privateKeyFile=~./ssh/Key.file or i need put key.file un rancher server ?

---

<div class="post-metadata">

**Author:** ![Adaikal\_Raj](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Adaikal\_Raj](https://forums.suse.com/u/Adaikal_Raj)\
**Post date:** [June 30, 2016, 10:00am UTC](https://forums.suse.com/t/keypair-onpenstack-and-privatekeyfile-api/3245/2 "2016-06-30T10:00:02Z")

</div>

you have to mount the private key from your server volume to rancher container volume by passing -v while launching rancher server container.

Then when you pass the values for openstack API, you have to specify the absolute path of private key inside your rancher server container.

for eg: docker run -itdP -v /home/ubuntu/.ssh/id\_rsa.pem:/.ssh/id\_rsa.pem rancher/server

---

<div class="post-metadata">

**Author:** ![Rhoa](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@Rhoa](https://forums.suse.com/u/Rhoa)\
**Post date:** [June 30, 2016, 12:08pm UTC](https://forums.suse.com/t/keypair-onpenstack-and-privatekeyfile-api/3245/3 "2016-06-30T12:08:50Z")

</div>

Oh yes of course 🙂  
Thx for reply
