Hi , we are using PHP SDK for openstack [ php 7 ] and we want to add a keypair to instance

According my researchs I found that we can import a keypair to openstack system . So we do this and everythings goes fine .

at second step I can Add the keypair to instance too But I can not login to instance via ssh and keypair , i think we should insert private key to instance too .

Any idea?