# Ubuntu Server in gns3 project ssh with nat0 of my ubuntu OS

**URL:** <https://forum.ansible.com/t/ubuntu-server-in-gns3-project-ssh-with-nat0-of-my-ubuntu-os/35659>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [August 22, 2021, 5:57am UTC](https://forum.ansible.com/t/ubuntu-server-in-gns3-project-ssh-with-nat0-of-my-ubuntu-os/35659 "2021-08-22T05:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Sutar](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@Vivek\_Sutar](https://forum.ansible.com/u/Vivek_Sutar)\
**Post date:** [August 22, 2021, 5:57am UTC](https://forum.ansible.com/t/ubuntu-server-in-gns3-project-ssh-with-nat0-of-my-ubuntu-os/35659/1 "2021-08-22T05:57:42Z")

</div>

Hello Team,

I am trying to establish ssh connection between nat0 with ubuntu server in gns3 as shown below

 ![ssh_Connection1.png](https://us1.discourse-cdn.com/ansible/original/2X/8/877ea284513c876ca7bf42255722e1fe12b021ca.png)

I allowed PermitRootLogin Yes in /etc/ssh/sshd\_config  
and using ansible commands as a root user  
My Ssh connection has been done successfully but it is not asking me for a password for the following command

**ansible 192.168.122.164 -m raw -a ‘ifconfig’ -u root -k**

It prompts for ssh password  
but if I hit enter without password also gives me output

can anyone help me?
