cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1323
Views
0
Helpful
5
Replies

DevNet sandbox not able to connect with provided credentials to DevNet box

weigang
Cisco Employee
Cisco Employee

Tried DevNet lab: 

Power On Auto Provisioning (POAP) on Nexus Switches Part 1 - Setting up POAP Infrastructure

Reserved the sandbox. Followed the instruction setting up the VPN. Unfortunately, not able to proceed since ssh to 10.10.20.20 failed authentication, using the provided credentials from this site:

 

https://devnetsandbox.cisco.com/RM/Diagram/Index/2c274c7d-65ed-4f44-9ff1-d00776cd13e0

 

Please update the credentials. 

5 Replies 5

eublack
Cisco Employee
Cisco Employee

Hello,

 

I was able to duplicate the issue. Working on a resolution. Will update once corrected.

 

Thank you

 

eublack
Cisco Employee
Cisco Employee

Hello,

 

Issue has now been corrected. Please retry with a new reservation using default credentials as per instructions pane.

 

Thank you

weigang
Cisco Employee
Cisco Employee

Thank you for the update.

 

I am able to connect to 10.10.20.20 as root. However, it failed at the first step of running ansible playbook to populate dhcp config file:

 

(python2) [root@localhost poap]# ansible-playbook devbox_dhcp_setup.yml

 

PLAY [devbox] ******************************************************************

 

TASK [setup] *******************************************************************

fatal: [10.10.20.20]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n", "unreachable": true}

       to retry, use: --limit @/root/sbx_nxos/learning_labs/poap/devbox_dhcp_setup.retry

 

 

Any tips?

 

output of ansible playbook -vvv

 

(python2) [root@localhost poap]# ansible-playbook devbox_dhcp_setup.yml -vvv

Using /root/sbx_nxos/learning_labs/poap/ansible.cfg as config file

statically included: /root/sbx_nxos/learning_labs/poap/dhcp_server/tasks/apparmor-fix.yml

 

PLAYBOOK: devbox_dhcp_setup.yml ************************************************

1 plays in devbox_dhcp_setup.yml

 

PLAY [devbox] ******************************************************************

 

TASK [setup] *******************************************************************

Using module file /root/sbx_nxos/venv/python2/lib/python2.7/site-packages/ansible/modules/core/system/setup.py

<10.10.20.20> ESTABLISH SSH CONNECTION FOR USER: None

<10.10.20.20> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 10.10.20.20 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1534269542.35-179966824760945 `" && echo ansible-tmp-1534269542.35-179966824760945="` echo ~/.ansible/tmp/ansible-tmp-1534269542.35-179966824760945 `" ) && sleep 0'"'"''

fatal: [10.10.20.20]: UNREACHABLE! => {

    "changed": false,

    "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n",

    "unreachable": true

}

to retry, use: --limit @/root/sbx_nxos/learning_labs/poap/devbox_dhcp_setup.retry

 

PLAY RECAP *********************************************************************

10.10.20.20                : ok=0    changed=0    unreachable=1    failed=0   

 

I resolved the connection issue after generating rsa keys. Please confirm this is the right way to do. 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: