08-13-2018 09:37 AM - edited 06-04-2019 02:41 AM
Tried DevNet lab:
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.
08-14-2018 02:54 AM
Hello,
I was able to duplicate the issue. Working on a resolution. Will update once corrected.
Thank you
08-14-2018 03:59 AM
Hello,
Issue has now been corrected. Please retry with a new reservation using default credentials as per instructions pane.
Thank you
08-14-2018 10:58 AM
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?
08-14-2018 11:00 AM
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
08-14-2018 11:23 AM
I resolved the connection issue after generating rsa keys. Please confirm this is the right way to do.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide