# ssh connection other than root user

**URL:** <https://forum.ansible.com/t/ssh-connection-other-than-root-user/22403>\
**Category:** Ansible Developer\
**Created:** [August 26, 2016, 7:28pm UTC](https://forum.ansible.com/t/ssh-connection-other-than-root-user/22403 "2016-08-26T19:28:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Athul\_Devadas](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@Athul\_Devadas](https://forum.ansible.com/u/Athul_Devadas)\
**Post date:** [August 26, 2016, 7:28pm UTC](https://forum.ansible.com/t/ssh-connection-other-than-root-user/22403/1 "2016-08-26T19:28:59Z")

</div>

Hi  
I am new to Ansible and ssh. I have two Linux machine.  
I have a user named test in both. Copied the public key from the controller machine to node and i try to connect it through ansible. I am not able to connect.

Do we need to create Private/public key as root itself and copy it to the root of the other machine??  
Can we use two differnt user like,root user in controller machine test user in node.? I tried this but it was not working. Giving me error like check whether it is configured to ssh connection
