# ssh issue over non root account

**URL:** <https://forum.ansible.com/t/ssh-issue-over-non-root-account/36742>\
**Category:** Ansible Project\
**Created:** [June 15, 2022, 3:36pm UTC](https://forum.ansible.com/t/ssh-issue-over-non-root-account/36742 "2022-06-15T15:36:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orkhan\_Mammadov](https://avatars.discourse-cdn.com/v4/letter/o/eada6e/32.png) [@Orkhan\_Mammadov](https://forum.ansible.com/u/Orkhan_Mammadov)\
**Post date:** [June 15, 2022, 3:36pm UTC](https://forum.ansible.com/t/ssh-issue-over-non-root-account/36742/1 "2022-06-15T15:36:56Z")

</div>

Hi guys,

I have issue with connecting over ssh to other machine using non root account. First of all, I create new fresh non root user. When I try to ssh , it gives permission denied message. Then I created key pairs using ssh-keygen and tried ssh-copy-id , it gives the same message. I added id\_rsa.pub key tp authorized\_keys file, however, the same issue. Could you please help to setup it asap, I can’t start ansible course due to this issue.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [June 15, 2022, 3:58pm UTC](https://forum.ansible.com/t/ssh-issue-over-non-root-account/36742/2 "2022-06-15T15:58:00Z")

</div>

Your course should mention that SSH access is a requirement for the course 🙂  
In any case as you pointed out it’s not really an ansible specific problem but rather a generic system administration issue.  
Read  
[https://docs.ansible.com/ansible/latest/user\_guide/connection\_details.html](https://docs.ansible.com/ansible/latest/user_guide/connection_details.html) for some hints

Reg ‘asap’ - I wouldn’t expect people to hurry because of poor planning and preparation on your side…

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [June 16, 2022, 6:49am UTC](https://forum.ansible.com/t/ssh-issue-over-non-root-account/36742/3 "2022-06-16T06:49:25Z")

</div>

> Your course should mention that SSH access is a requirement for the course 🙂  
> In any case as you pointed out it's not really an ansible specific problem but rather a generic system administration issue.  
> Read  
> [https://docs.ansible.com/ansible/latest/user\_guide/connection\_details.html](https://docs.ansible.com/ansible/latest/user_guide/connection_details.html) for some hints
> 
> Reg 'asap' - I wouldn't expect people to hurry because of poor planning and preparation on your side...

Yes, definitely agree with this.

@Orkhan you need to add the target user to your ssh command, e.g ssh \<user\>@\<ip\_address\>.

Regards

```
          Racke

```
