Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohitthakur2590/978c2667dc2bf8857ff7427d2412eac4 to your computer and use it in GitHub Desktop.
Save rohitthakur2590/978c2667dc2bf8857ff7427d2412eac4 to your computer and use it in GitHub Desktop.
RSA authentication error
2019-04-29 18:06:44,681 p=11359 u=rothakur | ansible 2.9.0.dev0
config file = /home/rothakur/dev-workspace/ansible.cfg
configured module search path = [u'/home/rothakur/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/rothakur/dev-workspace/ansible/lib/ansible
executable location = /home/rothakur/dev-workspace/ansible/bin/ansible
python version = 2.7.15 (default, Oct 15 2018, 15:26:09) [GCC 8.2.1 20180801 (Red Hat 8.2.1-2)]
2019-04-29 18:06:44,681 p=11359 u=rothakur | Using /home/rothakur/dev-workspace/ansible.cfg as config file
2019-04-29 18:06:44,681 p=11359 u=rothakur | setting up inventory plugins
2019-04-29 18:06:44,705 p=11359 u=rothakur | host_list declined parsing /home/rothakur/dev-workspace/inventory as it did not pass it's verify_file() method
2019-04-29 18:06:44,705 p=11359 u=rothakur | script declined parsing /home/rothakur/dev-workspace/inventory as it did not pass it's verify_file() method
2019-04-29 18:06:44,705 p=11359 u=rothakur | auto declined parsing /home/rothakur/dev-workspace/inventory as it did not pass it's verify_file() method
2019-04-29 18:06:44,710 p=11359 u=rothakur | Parsed /home/rothakur/dev-workspace/inventory inventory source with ini plugin
2019-04-29 18:06:44,791 p=11359 u=rothakur | Loading callback plugin minimal of type stdout, v2.0 from /home/rothakur/dev-workspace/ansible/lib/ansible/plugins/callback/minimal.pyc
2019-04-29 18:06:45,082 p=11359 u=rothakur | META: ran handlers
2019-04-29 18:06:45,185 p=11359 u=rothakur | <38.145.32.59> attempting to start connection
2019-04-29 18:06:45,185 p=11359 u=rothakur | <38.145.32.59> using connection plugin network_cli
2019-04-29 18:06:45,891 p=11367 u=rothakur | <38.145.32.59> ESTABLISH PARAMIKO SSH CONNECTION FOR USER: ansible on PORT 8022 TO 38.145.32.59
2019-04-29 18:06:46,151 p=11374 u=rothakur | paramiko [38.145.32.59] starting thread (client mode): 0xb81886d0L
2019-04-29 18:06:46,152 p=11374 u=rothakur | paramiko [38.145.32.59] Local version/idstring: SSH-2.0-paramiko_2.4.2
2019-04-29 18:06:46,423 p=11374 u=rothakur | paramiko [38.145.32.59] Remote version/idstring: SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze5
2019-04-29 18:06:46,424 p=11374 u=rothakur | paramiko [38.145.32.59] Connected (version 2.0, client OpenSSH_5.5p1)
2019-04-29 18:06:46,425 p=11374 u=rothakur | paramiko [38.145.32.59] kex algos:[u'diffie-hellman-group-exchange-sha256', u'diffie-hellman-group-exchange-sha1', u'diffie-hellman-group14-sha1', u'diffie-hellman-group1-sha1'] server key:[u'ssh-rsa', u'ssh-dss'] client encrypt:[u'aes128-ctr', u'aes192-ctr', u'aes256-ctr', u'arcfour256', u'arcfour128', u'aes128-cbc', u'3des-cbc', u'blowfish-cbc', u'cast128-cbc', u'aes192-cbc', u'aes256-cbc', u'arcfour', u'rijndael-cbc@lysator.liu.se'] server encrypt:[u'aes128-ctr', u'aes192-ctr', u'aes256-ctr', u'arcfour256', u'arcfour128', u'aes128-cbc', u'3des-cbc', u'blowfish-cbc', u'cast128-cbc', u'aes192-cbc', u'aes256-cbc', u'arcfour', u'rijndael-cbc@lysator.liu.se'] client mac:[u'hmac-md5', u'hmac-sha1', u'umac-64@openssh.com', u'hmac-ripemd160', u'hmac-ripemd160@openssh.com', u'hmac-sha1-96', u'hmac-md5-96'] server mac:[u'hmac-md5', u'hmac-sha1', u'umac-64@openssh.com', u'hmac-ripemd160', u'hmac-ripemd160@openssh.com', u'hmac-sha1-96', u'hmac-md5-96'] client compress:[u'none', u'zlib@openssh.com'] server compress:[u'none', u'zlib@openssh.com'] client lang:[u''] server lang:[u''] kex follows?False
2019-04-29 18:06:46,426 p=11374 u=rothakur | paramiko [38.145.32.59] Kex agreed: diffie-hellman-group-exchange-sha256
2019-04-29 18:06:46,426 p=11374 u=rothakur | paramiko [38.145.32.59] HostKey agreed: ssh-rsa
2019-04-29 18:06:46,426 p=11374 u=rothakur | paramiko [38.145.32.59] Cipher agreed: aes128-ctr
2019-04-29 18:06:46,426 p=11374 u=rothakur | paramiko [38.145.32.59] MAC agreed: hmac-sha1
2019-04-29 18:06:46,427 p=11374 u=rothakur | paramiko [38.145.32.59] Compression agreed: none
2019-04-29 18:06:47,758 p=11374 u=rothakur | paramiko [38.145.32.59] Got server p (2048 bits)
2019-04-29 18:06:48,130 p=11374 u=rothakur | paramiko [38.145.32.59] kex engine KexGexSHA256 specified hash_algo <built-in function openssl_sha256>
2019-04-29 18:06:48,131 p=11374 u=rothakur | paramiko [38.145.32.59] Switch to new keys ...
2019-04-29 18:06:48,146 p=11374 u=rothakur | paramiko [38.145.32.59] Trying SSH agent key c13624694008b75488e1f2bc391c5748
2019-04-29 18:06:48,684 p=11374 u=rothakur | paramiko [38.145.32.59] userauth is OK
2019-04-29 18:06:48,958 p=11374 u=rothakur | paramiko [38.145.32.59] Auth banner: Welcome to VyOS
2019-04-29 18:06:48,959 p=11374 u=rothakur | paramiko [38.145.32.59] Authentication (publickey) failed.
2019-04-29 18:06:48,966 p=11374 u=rothakur | paramiko [38.145.32.59] Trying discovered key c13624694008b75488e1f2bc391c5748 in /home/rothakur/.ssh/id_rsa
2019-04-29 18:06:49,225 p=11374 u=rothakur | paramiko [38.145.32.59] userauth is OK
2019-04-29 18:06:49,488 p=11374 u=rothakur | paramiko [38.145.32.59] Authentication (publickey) failed.
2019-04-29 18:06:49,549 p=11359 u=rothakur | <38.145.32.59> local domain socket does not exist, starting it
2019-04-29 18:06:49,550 p=11359 u=rothakur | <38.145.32.59> control socket path is /home/rothakur/.ansible/pc/0e7bfa4f70
2019-04-29 18:06:49,550 p=11359 u=rothakur | <38.145.32.59> loaded cliconf plugin for network_os vyos
2019-04-29 18:06:49,550 p=11359 u=rothakur | network_os is set to vyos
2019-04-29 18:06:49,550 p=11359 u=rothakur | <38.145.32.59>
2019-04-29 18:06:49,550 p=11359 u=rothakur | The full traceback is:
Traceback (most recent call last):
File "/home/rothakur/dev-workspace/ansible/bin/ansible-connection", line 104, in start
self.connection._connect()
File "/home/rothakur/dev-workspace/ansible/lib/ansible/plugins/connection/network_cli.py", line 327, in _connect
ssh = self.paramiko_conn._connect()
File "/home/rothakur/dev-workspace/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 245, in _connect
self.ssh = SSH_CONNECTION_CACHE[cache_key] = self._connect_uncached()
File "/home/rothakur/dev-workspace/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 358, in _connect_uncached
raise AnsibleAuthenticationFailure(msg)
AnsibleAuthenticationFailure: Invalid/incorrect username/password. Authentication failed.
2019-04-29 18:06:49,553 p=11359 u=rothakur | 38.145.32.59 | FAILED! => {
"msg": "Invalid/incorrect username/password. Authentication failed."
}
2019-04-29 18:06:49,601 p=11367 u=rothakur | shutdown complete
2019-04-29 18:06:49,689 p=11374 u=rothakur | paramiko [38.145.32.59] EOF in transport thread
2019-04-29 18:07:03,283 p=11386 u=rothakur | ansible 2.9.0.dev0
config file = /home/rothakur/dev-workspace/ansible.cfg
configured module search path = [u'/home/rothakur/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/rothakur/dev-workspace/ansible/lib/ansible
executable location = /home/rothakur/dev-workspace/ansible/bin/ansible
python version = 2.7.15 (default, Oct 15 2018, 15:26:09) [GCC 8.2.1 20180801 (Red Hat 8.2.1-2)]
2019-04-29 18:07:03,283 p=11386 u=rothakur | Using /home/rothakur/dev-workspace/ansible.cfg as config file
2019-04-29 18:07:03,283 p=11386 u=rothakur | setting up inventory plugins
2019-04-29 18:07:03,307 p=11386 u=rothakur | host_list declined parsing /home/rothakur/dev-workspace/inventory as it did not pass it's verify_file() method
2019-04-29 18:07:03,307 p=11386 u=rothakur | script declined parsing /home/rothakur/dev-workspace/inventory as it did not pass it's verify_file() method
2019-04-29 18:07:03,307 p=11386 u=rothakur | auto declined parsing /home/rothakur/dev-workspace/inventory as it did not pass it's verify_file() method
2019-04-29 18:07:03,313 p=11386 u=rothakur | Parsed /home/rothakur/dev-workspace/inventory inventory source with ini plugin
2019-04-29 18:07:03,397 p=11386 u=rothakur | Loading callback plugin minimal of type stdout, v2.0 from /home/rothakur/dev-workspace/ansible/lib/ansible/plugins/callback/minimal.pyc
2019-04-29 18:07:03,686 p=11386 u=rothakur | META: ran handlers
2019-04-29 18:07:03,789 p=11386 u=rothakur | <38.145.32.59> attempting to start connection
2019-04-29 18:07:03,789 p=11386 u=rothakur | <38.145.32.59> using connection plugin network_cli
2019-04-29 18:07:04,498 p=11393 u=rothakur | <38.145.32.59> ESTABLISH PARAMIKO SSH CONNECTION FOR USER: ansible on PORT 8022 TO 38.145.32.59
2019-04-29 18:07:04,744 p=11400 u=rothakur | paramiko [38.145.32.59] starting thread (client mode): 0x366d46d0L
2019-04-29 18:07:04,745 p=11400 u=rothakur | paramiko [38.145.32.59] Local version/idstring: SSH-2.0-paramiko_2.4.2
2019-04-29 18:07:04,997 p=11400 u=rothakur | paramiko [38.145.32.59] Remote version/idstring: SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze5
2019-04-29 18:07:04,997 p=11400 u=rothakur | paramiko [38.145.32.59] Connected (version 2.0, client OpenSSH_5.5p1)
2019-04-29 18:07:04,999 p=11400 u=rothakur | paramiko [38.145.32.59] kex algos:[u'diffie-hellman-group-exchange-sha256', u'diffie-hellman-group-exchange-sha1', u'diffie-hellman-group14-sha1', u'diffie-hellman-group1-sha1'] server key:[u'ssh-rsa', u'ssh-dss'] client encrypt:[u'aes128-ctr', u'aes192-ctr', u'aes256-ctr', u'arcfour256', u'arcfour128', u'aes128-cbc', u'3des-cbc', u'blowfish-cbc', u'cast128-cbc', u'aes192-cbc', u'aes256-cbc', u'arcfour', u'rijndael-cbc@lysator.liu.se'] server encrypt:[u'aes128-ctr', u'aes192-ctr', u'aes256-ctr', u'arcfour256', u'arcfour128', u'aes128-cbc', u'3des-cbc', u'blowfish-cbc', u'cast128-cbc', u'aes192-cbc', u'aes256-cbc', u'arcfour', u'rijndael-cbc@lysator.liu.se'] client mac:[u'hmac-md5', u'hmac-sha1', u'umac-64@openssh.com', u'hmac-ripemd160', u'hmac-ripemd160@openssh.com', u'hmac-sha1-96', u'hmac-md5-96'] server mac:[u'hmac-md5', u'hmac-sha1', u'umac-64@openssh.com', u'hmac-ripemd160', u'hmac-ripemd160@openssh.com', u'hmac-sha1-96', u'hmac-md5-96'] client compress:[u'none', u'zlib@openssh.com'] server compress:[u'none', u'zlib@openssh.com'] client lang:[u''] server lang:[u''] kex follows?False
2019-04-29 18:07:04,999 p=11400 u=rothakur | paramiko [38.145.32.59] Kex agreed: diffie-hellman-group-exchange-sha256
2019-04-29 18:07:05,000 p=11400 u=rothakur | paramiko [38.145.32.59] HostKey agreed: ssh-rsa
2019-04-29 18:07:05,000 p=11400 u=rothakur | paramiko [38.145.32.59] Cipher agreed: aes128-ctr
2019-04-29 18:07:05,000 p=11400 u=rothakur | paramiko [38.145.32.59] MAC agreed: hmac-sha1
2019-04-29 18:07:05,000 p=11400 u=rothakur | paramiko [38.145.32.59] Compression agreed: none
2019-04-29 18:07:05,529 p=11400 u=rothakur | paramiko [38.145.32.59] Got server p (2048 bits)
2019-04-29 18:07:05,887 p=11400 u=rothakur | paramiko [38.145.32.59] kex engine KexGexSHA256 specified hash_algo <built-in function openssl_sha256>
2019-04-29 18:07:05,888 p=11400 u=rothakur | paramiko [38.145.32.59] Switch to new keys ...
2019-04-29 18:07:05,891 p=11400 u=rothakur | paramiko [38.145.32.59] Trying SSH agent key c13624694008b75488e1f2bc391c5748
2019-04-29 18:07:06,416 p=11400 u=rothakur | paramiko [38.145.32.59] userauth is OK
2019-04-29 18:07:06,674 p=11400 u=rothakur | paramiko [38.145.32.59] Auth banner: Welcome to VyOS
2019-04-29 18:07:06,674 p=11400 u=rothakur | paramiko [38.145.32.59] Authentication (publickey) failed.
2019-04-29 18:07:06,696 p=11400 u=rothakur | paramiko [38.145.32.59] Trying discovered key c13624694008b75488e1f2bc391c5748 in /home/rothakur/.ssh/id_rsa
2019-04-29 18:07:06,941 p=11400 u=rothakur | paramiko [38.145.32.59] userauth is OK
2019-04-29 18:07:07,193 p=11400 u=rothakur | paramiko [38.145.32.59] Authentication (publickey) failed.
2019-04-29 18:07:07,249 p=11386 u=rothakur | <38.145.32.59> local domain socket does not exist, starting it
2019-04-29 18:07:07,249 p=11386 u=rothakur | <38.145.32.59> control socket path is /home/rothakur/.ansible/pc/c912c5eb19
2019-04-29 18:07:07,249 p=11386 u=rothakur | <38.145.32.59> loaded cliconf plugin for network_os vyos
2019-04-29 18:07:07,249 p=11386 u=rothakur | network_os is set to vyos
2019-04-29 18:07:07,250 p=11386 u=rothakur | [WARNING]: Persistent connection logging is enabled for 38.145.32.59. This will log ALL interactions to /home/rothakur/dev-workspace/ansible_log.log and WILL NOT redact sensitive configuration like passwords.
USE WITH CAUTION!
2019-04-29 18:07:07,250 p=11386 u=rothakur | <38.145.32.59>
2019-04-29 18:07:07,250 p=11386 u=rothakur | The full traceback is:
Traceback (most recent call last):
File "/home/rothakur/dev-workspace/ansible/bin/ansible-connection", line 104, in start
self.connection._connect()
File "/home/rothakur/dev-workspace/ansible/lib/ansible/plugins/connection/network_cli.py", line 327, in _connect
ssh = self.paramiko_conn._connect()
File "/home/rothakur/dev-workspace/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 245, in _connect
self.ssh = SSH_CONNECTION_CACHE[cache_key] = self._connect_uncached()
File "/home/rothakur/dev-workspace/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 358, in _connect_uncached
raise AnsibleAuthenticationFailure(msg)
AnsibleAuthenticationFailure: Invalid/incorrect username/password. Authentication failed.
2019-04-29 18:07:07,253 p=11386 u=rothakur | 38.145.32.59 | FAILED! => {
"msg": "Invalid/incorrect username/password. Authentication failed."
}
2019-04-29 18:07:07,300 p=11393 u=rothakur | shutdown complete
2019-04-29 18:07:07,394 p=11400 u=rothakur | paramiko [38.145.32.59] EOF in transport thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment