ssh issue over non root account

40 views
Skip to first unread message

Orkhan Mammadov

unread,
Jun 15, 2022, 11:36:56 AM6/15/22
to Ansible Project
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 <ip-address>, it gives permission denied message. Then I created key pairs using ssh-keygen and tried ssh-copy-id <ip-address>, 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

Dick Visser

unread,
Jun 15, 2022, 11:58:23 AM6/15/22
to ansible...@googlegroups.com
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 

Reg 'asap' - I wouldn't expect people to hurry because of poor planning and preparation on your side...

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7feb759c-807d-441a-9b4f-0a4448dcd14en%40googlegroups.com.
--
Sent from Gmail Mobile

Stefan Hornburg (Racke)

unread,
Jun 16, 2022, 2:49:48 AM6/16/22
to ansible...@googlegroups.com
On 15/06/2022 17:58, Dick Visser wrote:
> 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 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

>
> On Wed, 15 Jun 2022 at 17:37, Orkhan Mammadov <m7o...@gmail.com> wrote:
>
> 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 <ip-address>, it gives permission denied message. Then I created key pairs using ssh-keygen and tried ssh-copy-id <ip-address>, 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
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7feb759c-807d-441a-9b4f-0a4448dcd14en%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/7feb759c-807d-441a-9b4f-0a4448dcd14en%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> Sent from Gmail Mobile
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLa_39XDDyh1MC2u4ieBkzmHkrzo4yFUwFruh9MOOjbo6w%40mail.gmail.com <https://groups.google.com/d/msgid/ansible-project/CAF8BbLa_39XDDyh1MC2u4ieBkzmHkrzo4yFUwFruh9MOOjbo6w%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
Automation expert - Ansible and friends
Linux administrator & Debian maintainer
Perl Dancer & conference hopper

OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages