SSH private key invalid ? Ansible Mikrotik RouterOS configuration

67 views
Skip to first unread message

Samudra Haque

unread,
May 28, 2019, 2:06:28 PM5/28/19
to Ansible Project
Hello Ansible gurus, I am new to Ansible and have installed from Git source branch. I am not changing anything at this time. I am investigating ways to use Ansible with Mikrotik RouterOS (www.mt.lv or www.mikrotik.com). My test environment is a Ubuntu 18.xx linux box on a local area network. The two devices are on the same ethernet switch.

dev1@s5:~/TTLLC_ansible$ uname -a
Linux s5 5.0.0-15-generic #16-Ubuntu SMP Mon May 6 17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

dev1@s5:~/TTLLC_ansible$ ansible --version
 22073 1559065845.13968: starting run
ansible 2.9.0.dev0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/dev1/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/dev1/src/ansible/lib/ansible
  executable location = /home/dev1/src/ansible/bin/ansible
  python version = 2.7.16 (default, Apr  6 2019, 01:42:57) [GCC 8.3.0]
dev1@s5:~/TTLLC_ansible$



I have SSH private-key and public-key setup to allow me to access the Mikrotik RouterOS session without an interactive password from the Ubuntu box. For now, I am testing DSA file private key/public key

dev1@s5:~/.ssh$ ls -l
total 16
-rw------- 1 dev1 dev1 1373 May 26 23:10 3101_dsa
-rw-r--r-- 1 dev1 dev1  597 May 26 23:10 3101_dsa.pub

dev1@s5:~/.ssh$ file *
3101_dsa:     OpenSSH private key
3101_dsa.pub: OpenSSH DSA public key

Here is the proof that SSH works from the command line. 

dev1@s5:~/TTLLC_ansible$ ssh -i ~/.ssh/3101_dsa  ttad...@10.0.0.99 -p 22222

  MMM      MMM       KKK                          TTTTTTTTTTT      KKK
  MMMM    MMMM       KKK                          TTTTTTTTTTT      KKK
  MMM MMMM MMM  III  KKK  KKK  RRRRRR     OOOOOO      TTT     III  KKK  KKK
  MMM  MM  MMM  III  KKKKK     RRR  RRR  OOO  OOO     TTT     III  KKKKK
  MMM      MMM  III  KKK KKK   RRRRRR    OOO  OOO     TTT     III  KKK KKK
  MMM      MMM  III  KKK  KKK  RRR  RRR   OOOOOO      TTT     III  KKK  KKK

  MikroTik RouterOS 6.43.2 (c) 1999-2018       http://www.mikrotik.com/

[?]             Gives the list of available commands
command [?]     Gives help on the command and list of arguments

[Tab]           Completes the command/word. If the input is ambiguous,
                a second [Tab] gives possible options

/               Move up to base level
..              Move up one level
/command        Use command at the base level


Here is my problem (the full debug output is at the end of this message, sorry for the length) - Ansible reports the SSH module complains it is an Invalid key.

The full traceback is:
Traceback (most recent call last):
  File "/home/dev1/src/ansible/bin/ansible-connection", line 104, in start
    self.connection._connect()
  File "/home/dev1/src/ansible/lib/ansible/plugins/connection/network_cli.py", line 327, in _connect
    ssh = self.paramiko_conn._connect()
  File "/home/dev1/src/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 245, in _connect
    self.ssh = SSH_CONNECTION_CACHE[cache_key] = self._connect_uncached()
  File "/home/dev1/src/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 368, in _connect_uncached
    raise AnsibleConnectionFailure(msg)
AnsibleConnectionFailure: Invalid key

 22502 1559065909.68461: done running TaskExecutor() for 10.0.0.99/TASK: Gathering Facts [8851fb63-ee9d-cebc-7778-00000000000c]
 22502 1559065909.68478: sending task result for task 8851fb63-ee9d-cebc-7778-00000000000c
 22502 1559065909.68512: done sending task result for task 8851fb63-ee9d-cebc-7778-00000000000c
 22502 1559065909.68518: WORKER PROCESS EXITING
 22489 1559065909.68718: marking 10.0.0.99 as failed
 22489 1559065909.68731: marking host 10.0.0.99 failed, current state: HOST STATE: block=0, task=0, rescue=0, always=0, run_state=ITERATING_SETUP, fail_state=FAILED_NONE, pending_setup=True, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
 22489 1559065909.68736: ^ failed state is now: HOST STATE: block=0, task=0, rescue=0, always=0, run_state=ITERATING_COMPLETE, fail_state=FAILED_SETUP, pending_setup=True, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
 22489 1559065909.68741: getting the next task for host 10.0.0.99
 22489 1559065909.68746: host 10.0.0.99 is done iterating, returning
fatal: [10.0.0.99]: FAILED! => {
    "msg": "Invalid key"
}



I would have assumed the following script would work - but it doesn't, what am I doing wrong - how am I messing up the key definition?

dev1@s5:~/TTLLC_ansible$ cat doAnsible.sh
#! /bin/bash
# Specify the location for the log file
export ANSIBLE_LOG_PATH=/tmp/foo
# Enable Debug
export ANSIBLE_DEBUG=True

cat /dev/null > /tmp/foo
# Run with 4*v for connection level verbosity
ansible-playbook -u ttadmins -vvvv  -i TTLLC_hosts  ansibleRouterOS.yml


YAML file
dev1@s5:~/TTLLC_ansible$ cat ansibleRouterOS.yml
---
#
# Ansible Playbook for TTLLC RouterOS network management
# xxxxxxxxxxxxxxxxxxxxx Mon 27 May 2019 09:26:20 AM EDT
#
- hosts: mikrotiks
#  debugger: on_failed
  tasks:
   - name: get uptime on mikrotik devices
     routeros_command:
       commands: /system resource print
...


Test host file
# stub inventory file for ansible
[mikrotiks]
10.0.0.99

[mikrotiks:vars]
ansible_ssh_private_key_file=/home/dev1/.ssh/3101_dsa
ansible_connection=network_cli
ansible_port=22222
ansible_user=ttadmins
ansible_network_os=routeros


I have experimented with moving the ansible_ssh_private_key_file definition to a lot of locations: YAML file, Hosts file, Vars section, command line definition .... 

Full debug output /tmp/foo

dev1@s5:~/TTLLC_ansible$ cat /tmp/foo
2019-05-28 13:51:48,813 p=dev1 u=22489 | ansible-playbook 2.9.0.dev0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/dev1/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/dev1/src/ansible/lib/ansible
  executable location = /home/dev1/src/ansible/bin/ansible-playbook
  python version = 2.7.16 (default, Apr  6 2019, 01:42:57) [GCC 8.3.0]
2019-05-28 13:51:48,814 p=dev1 u=22489 | Using /etc/ansible/ansible.cfg as config file
2019-05-28 13:51:48,814 p=dev1 u=22489 | setting up inventory plugins
2019-05-28 13:51:48,821 p=dev1 u=22489 | host_list declined parsing /home/dev1/TTLLC_ansible/TTLLC_hosts as it did not pass it's verify_file() method
2019-05-28 13:51:48,821 p=dev1 u=22489 | script declined parsing /home/dev1/TTLLC_ansible/TTLLC_hosts as it did not pass it's verify_file() method
2019-05-28 13:51:48,821 p=dev1 u=22489 | auto declined parsing /home/dev1/TTLLC_ansible/TTLLC_hosts as it did not pass it's verify_file() method
2019-05-28 13:51:48,848 p=dev1 u=22489 | Parsed /home/dev1/TTLLC_ansible/TTLLC_hosts inventory source with ini plugin
2019-05-28 13:51:49,034 p=dev1 u=22489 | Loading callback plugin default of type stdout, v2.0 from /home/dev1/src/ansible/lib/ansible/plugins/callback/default.pyc
2019-05-28 13:51:49,080 p=dev1 u=22489 | PLAYBOOK: ansibleRouterOS.yml ************************************************************************************************************************************************************
2019-05-28 13:51:49,080 p=dev1 u=22489 | 1 plays in ansibleRouterOS.yml
2019-05-28 13:51:49,089 p=dev1 u=22489 | PLAY [mikrotiks] *************************************************************************************************************************************************************************
2019-05-28 13:51:49,098 p=dev1 u=22489 | TASK [Gathering Facts] *******************************************************************************************************************************************************************
2019-05-28 13:51:49,110 p=dev1 u=22502 | <10.0.0.99> attempting to start connection
2019-05-28 13:51:49,110 p=dev1 u=22502 | <10.0.0.99> using connection plugin network_cli
2019-05-28 13:51:49,421 p=dev1 u=22508 | <10.0.0.99> ESTABLISH PARAMIKO SSH CONNECTION FOR USER: ttadmins on PORT 22222 TO 10.0.0.99
2019-05-28 13:51:49,683 p=dev1 u=22502 | <10.0.0.99> local domain socket does not exist, starting it
2019-05-28 13:51:49,683 p=dev1 u=22502 | <10.0.0.99> control socket path is /home/dev1/.ansible/pc/8b253d558a
2019-05-28 13:51:49,683 p=dev1 u=22502 | <10.0.0.99> loaded cliconf plugin for network_os routeros
2019-05-28 13:51:49,683 p=dev1 u=22502 | network_os is set to routeros
2019-05-28 13:51:49,683 p=dev1 u=22502 | <10.0.0.99>  22503 1559065909.36878: trying /home/dev1/src/ansible/lib/ansible/plugins/connection
 22503 1559065909.40077: Loaded config def from plugin (connection/ssh)
 22503 1559065909.40087: Loading Connection 'ssh' from /home/dev1/src/ansible/lib/ansible/plugins/connection/ssh.py (found_in_cache=False, class_only=True)

2019-05-28 13:51:49,683 p=dev1 u=22502 | The full traceback is:
Traceback (most recent call last):
  File "/home/dev1/src/ansible/bin/ansible-connection", line 104, in start
    self.connection._connect()
  File "/home/dev1/src/ansible/lib/ansible/plugins/connection/network_cli.py", line 327, in _connect
    ssh = self.paramiko_conn._connect()
  File "/home/dev1/src/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 245, in _connect
    self.ssh = SSH_CONNECTION_CACHE[cache_key] = self._connect_uncached()
  File "/home/dev1/src/ansible/lib/ansible/plugins/connection/paramiko_ssh.py", line 368, in _connect_uncached
    raise AnsibleConnectionFailure(msg)
AnsibleConnectionFailure: Invalid key

2019-05-28 13:51:49,687 p=dev1 u=22489 | fatal: [10.0.0.99]: FAILED! => {
    "msg": "Invalid key"
}
2019-05-28 13:51:49,689 p=dev1 u=22489 | PLAY RECAP *******************************************************************************************************************************************************************************
2019-05-28 13:51:49,689 p=dev1 u=22489 | 10.0.0.99                  : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
2019-05-28 13:51:49,756 p=dev1 u=22508 | shutdown complete





Samudra Haque

unread,
May 28, 2019, 7:11:20 PM5/28/19
to Ansible Project
I have an update, after editing Hosts, Playbook and the script:

dev1@s5:~/TTLLC_ansible$ cat ansibleRouterOS.yml
---
#
# Ansible Playbook for TTLLC RouterOS network management
# XXXXXXXXXXXXXXXXX Mon 27 May 2019 09:26:20 AM EDT
#

- hosts: mikrotiks
  gather_facts: false
     #  debugger: on_failed
  tasks:
   - name: get uptime on mikrotik devices
     cli_command:
       command: "\/system resource print"
     register: routeros_resources
     #     when: ansible_network_os == 'routeros'
     #
     #    - name: run command and check to see if output contains routeros
     #      routeros_command:
     #        commands: /system resource print
     #        wait_for: result[0] contains MikroTik
     #
     #    - name: run multiple commands on remote nodes
     #      routeros_command:
     #        commands:
     #          - /system routerboard print
     #          - /system identity print
     #
     #    - name: run multiple commands and evaluate the output
     #      routeros_command:
     #        commands:
     #          - /system routerboard print
     #          - /interface ethernet print
     #        wait_for:
     #          - result[0] contains x86
     #          - result[1] contains ether1
     #
...


# stub inventory file for ansible
[mikrotiks]
10.0.0.99 ansible_ssh_private_key_file=/home/dev1/.ssh/3101_dsa

[mikrotiks:vars]
ansible_port=22222
ansible_user=ttadmins
ansible_connection=network_cli
ansible_network_os=routeros


On the Mikrotik router.. the tail end of the session

19:00:58 ssh,debug,packet sending string 
19:00:58 ssh,debug,packet SSH-2.0-ROSSSH\r 
19:00:58 ssh,debug,packet 
19:00:58 ssh,debug client version: SSH-2.0-paramiko_2.4.2 
19:00:58 ssh,debug transport state: 0 --> 1 
19:00:58 ssh,debug,packet packet create: 20 
19:00:58 ssh,debug,packet ----- sending -----  
19:00:58 ssh,debug,packet => offset:440 [0x1b8] 
19:00:58 ssh,debug,packet => size:100 [0x100] 
19:00:58 ssh,debug,packet 0000 01b4 0414 a9b9 bce9 b4c6 4f1d d016 
19:00:58 ssh,debug,packet 8f43 4c6c 0010 0000 007e 6469 6666 6965 
19:00:58 ssh,debug,packet 2d68 656c 6c6d 616e 2d67 726f 7570 2d65 
19:00:58 ssh,debug,packet 7863 6861 6e67 652d 7368 6132 3536 2c64 
19:00:58 ssh,debug,packet 6966 6669 652d 6865 6c6c 6d61 6e2d 6772 
19:00:58 ssh,debug,packet 6f75 702d 6578 6368 616e 6765 2d73 6861 
19:00:58 ssh,debug,packet 312c 6469 6666 6965 2d68 656c 6c6d 616e 
19:00:58 ssh,debug,packet 2d67 726f 7570 3134 2d73 6861 312c 6469 
19:00:58 ssh,debug,packet 6666 6965 2d68 656c 6c6d 616e 2d67 726f 
19:00:58 ssh,debug,packet 7570 312d 7368 6131 0000 000f 7373 682d 
19:00:58 ssh,debug,packet 6473 732c 7373 682d 7273 6100 0000 5c61 
19:00:58 ssh,debug,packet 6573 3132 382d 6374 722c 6165 7331 3932 
19:00:58 ssh,debug,packet 2d63 7472 2c61 6573 3235 362d 6374 722c 
19:00:58 ssh,debug,packet 6165 7331 3238 2d63 6263 2c61 6573 3139 
19:00:58 ssh,debug,packet 322d 6362 632c 6165 7332 3536 2d63 6263 
19:00:58 ssh,debug,packet 2c62 6c6f 7766 6973 682d 6362 632c 3364 
19:00:58 ssh,debug,packet -------------------- 
19:00:58 ssh,debug,packet ----- recieved ----- 
19:00:58 ssh,debug,packet => offset:2a0 [0x2a0] 
19:00:58 ssh,debug,packet => size:100 [0x100] 
19:00:58 ssh,debug,packet 0000 029c 0b14 7a0f 2013 7c27 a937 8500 
19:00:58 ssh,debug,packet 8ced 3289 987b 0000 00b7 6563 6468 2d73 
19:00:58 ssh,debug,packet 6861 322d 6e69 7374 7032 3536 2c65 6364 
19:00:58 ssh,debug,packet 682d 7368 6132 2d6e 6973 7470 3338 342c 
19:00:58 ssh,debug,packet 6563 6468 2d73 6861 322d 6e69 7374 7035 
19:00:58 ssh,debug,packet 3231 2c64 6966 6669 652d 6865 6c6c 6d61 
19:00:58 ssh,debug,packet 6e2d 6772 6f75 702d 6578 6368 616e 6765 
19:00:58 ssh,debug,packet 2d73 6861 3235 362c 6469 6666 6965 2d68 
19:00:58 ssh,debug,packet 656c 6c6d 616e 2d67 726f 7570 2d65 7863 
19:00:58 ssh,debug,packet 6861 6e67 652d 7368 6131 2c64 6966 6669 
19:00:58 ssh,debug,packet 652d 6865 6c6c 6d61 6e2d 6772 6f75 7031 
19:00:58 ssh,debug,packet 342d 7368 6131 2c64 6966 6669 652d 6865 
19:00:58 ssh,debug,packet 6c6c 6d61 6e2d 6772 6f75 7031 2d73 6861 
19:00:58 ssh,debug,packet 3100 0000 5773 7368 2d72 7361 2c73 7368 
19:00:58 ssh,debug,packet 2d65 6432 3535 3139 2c65 6364 7361 2d73 
19:00:58 ssh,debug,packet 6861 322d 6e69 7374 7032 3536 2c65 6364 
19:00:58 ssh,debug,packet -------------------- 
19:00:58 ssh,debug host key algo: ssh-rsa,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sh
a2-nistp384,ecdsa-sha2-nistp521,ssh-dss 
19:00:58 ssh,debug kex algo: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp
521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie
-hellman-group14-sha1,diffie-hellman-group1-sha1 
19:00:58 ssh,debug enc algo CS: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192
-cbc,aes256-cbc,blowfish-cbc,3des-cbc 
19:00:58 ssh,debug mac algo CS: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hma
c-sha1-96,hmac-md5-96 
19:00:58 ssh,debug comp algo CS: none 
19:00:58 ssh,debug packet follows: 0 
19:00:58 ssh,debug agreed on: diffie-hellman-group-exchange-sha256 ssh-rsa aes128-
ctr aes128-ctr hmac-sha1 hmac-sha1 none none  
19:00:58 ssh,debug,packet ----- recieved ----- 
19:00:58 ssh,debug,packet => offset:18 [0x18] 
19:00:58 ssh,debug,packet => size:18 [0x18] 
19:00:58 ssh,debug,packet 0000 0014 0622 0000 0400 0000 0800 0000 
19:00:58 ssh,debug,packet 2000 0000 0000 0000 
19:00:58 ssh,debug,packet -------------------- 
19:00:58 ssh,debug getPrime bits: 2048[1024-8192] returned: 1024 
19:00:58 ssh,debug,packet packet create: 31 
19:00:58 ssh,debug,packet ----- sending -----  
19:00:58 ssh,debug,packet => offset:152 [0x98] 
19:00:58 ssh,debug,packet => size:98 [0x98] 
19:00:58 ssh,debug,packet 0000 0094 081f 0000 0081 00ac 3312 b843 
19:00:58 ssh,debug,packet 8ba5 ccc6 bf87 5f63 6202 402c 4421 9dee 
19:00:58 ssh,debug,packet 828b c56a a0d2 b700 0d00 8e70 8dce eb0a 
19:00:58 ssh,debug,packet b5e7 fb0b b858 1f5a 4fbb dc31 e124 689c 
19:00:58 ssh,debug,packet e22f bb2c 5974 61a9 0a31 9fe6 edc7 43c8 
19:00:58 ssh,debug,packet 96d4 846a 2417 31b1 f76d 0334 7002 afe3 
19:00:58 ssh,debug,packet 235a 5ceb a18f 7b4d c741 ac14 3b6a efab 
19:00:58 ssh,debug,packet 7820 aaa9 efe1 5179 d9d4 81dc 531b 772d 
19:00:58 ssh,debug,packet 2e5b 1d14 f1c3 951d 66c7 6300 0000 0102 
19:00:58 ssh,debug,packet 60fe 8f3b 2001 cc5d 
19:00:58 ssh,debug,packet -------------------- 
19:00:58 ssh,debug,packet ----- recieved ----- 
19:00:58 ssh,debug,packet => offset:90 [0x90] 
19:00:58 ssh,debug,packet => size:90 [0x90] 
19:00:58 ssh,debug,packet 0000 008c 0520 0000 0081 0089 138e 4875 
19:00:58 ssh,debug,packet 2c05 f033 58cd 770c 4e82 528e 1590 2a4d 
19:00:58 ssh,debug,packet affb d623 e805 24f0 acc6 4b5b ce27 2fb8 
19:00:58 ssh,debug,packet 696c 1bcf cdd4 69e4 f180 c77a a050 1f66 
19:00:58 ssh,debug,packet 8c19 1311 49b0 38f1 21f6 91d1 eb81 64d4 
19:00:58 ssh,debug,packet 34a8 e0c4 4eb1 dfc4 9064 0745 b9b1 add7 
19:00:58 ssh,debug,packet edb8 cd65 c8e3 aff3 329a 48e6 6694 4e9b 
19:00:58 ssh,debug,packet 2f2e f2f7 d7c4 f0a7 3a99 293a 446a 724f 
19:00:58 ssh,debug,packet 3367 2c4e 4e08 dd7b ea32 2700 0000 0000 
19:00:58 ssh,debug,packet -------------------- 
19:00:58 ssh,debug,packet packet create: 33 
19:00:58 ssh,debug,packet ----- sending -----  
19:00:58 ssh,debug,packet => offset:704 [0x2c0] 
19:00:58 ssh,debug,packet => size:100 [0x100] 
19:00:58 ssh,debug,packet 0000 02bc 0a21 0000 0115 0000 0007 7373 
19:00:58 ssh,debug,packet 682d 7273 6100 0000 0103 0000 0101 00c1 
19:00:58 ssh,debug,packet 6f69 962c e458 b3c1 93e2 950f 67c1 bc64 
19:00:58 ssh,debug,packet 1d79 b8db 9c56 6e9d 9291 451d 2d50 0ba0 
19:00:58 ssh,debug,packet 2faa ee56 06c0 c3ba 2cdc 0c5c 1c9e 50b9 
19:00:58 ssh,debug,packet 6807 fa52 f389 87d8 108d c275 4506 5dcf 
19:00:58 ssh,debug,packet 5a60 3986 9584 f548 3c19 5bdf 1152 ca3a 
19:00:58 ssh,debug,packet 6850 5e78 1a26 5e8f 6069 d2f2 9a61 bb1c 
19:00:58 ssh,debug,packet 873f 9b8a 2f76 8b3f 916f a297 c793 11bc 
19:00:58 ssh,debug,packet 2303 1291 355f 8010 df31 1383 3fa5 0b6c 
19:00:58 ssh,debug,packet b25a e56b cd04 49af 68a5 c623 3afc c92d 
19:00:58 ssh,debug,packet e326 cf30 8c0c c4af af9c 5e99 aff5 a33a 
19:00:58 ssh,debug,packet a400 7ac1 f711 0626 7c18 8912 bc6a dd4f 
19:00:58 ssh,debug,packet 76de 5670 1d48 43a3 7304 0805 4914 70e0 
19:00:58 ssh,debug,packet 4395 29ca 7733 e1cb 3889 3217 5f7f 1a83 
19:00:58 ssh,debug,packet 763d 64f4 2963 cea8 3478 20e5 c6b4 bebf 
19:00:58 ssh,debug,packet -------------------- 
19:00:58 ssh,debug,packet packet create: 21 
19:00:58 ssh,debug,packet ----- sending -----  
19:00:58 ssh,debug,packet => offset:16 [0x10] 
19:00:58 ssh,debug,packet => size:10 [0x10] 
19:00:58 ssh,debug,packet 0000 000c 0a15 ab0e 3cb5 a257 74eb 97f3 
19:00:58 ssh,debug,packet -------------------- 
19:00:58 ssh,debug,packet ----- recieved ----- 
19:00:58 ssh,debug,packet => offset:10 [0x10] 
19:00:58 ssh,debug,packet => size:10 [0x10] 
19:00:58 ssh,debug,packet 0000 000c 0a15 0000 0000 0000 0000 0000 
19:00:58 ssh,debug,packet -------------------- 
19:00:58 ssh,debug transport state: 1 --> 2 
19:00:58 ssh,debug closing connection: 10.0.0.166:43864 (13) 
19:07:02 system,info,account user admin logged in from 10.0.1.254 via telnet 
19:08:29 system,info,account user admin logged out from 10.0.1.254 via telnet 
19:09:00 system,info,account user admin logged in from 10.0.1.254 via telnet 

[admin@3101-r1] /log> 


So, on the Ubuntu host, ansible logs

ansible1.png



hello 

Dick Visser

unread,
May 29, 2019, 12:03:18 AM5/29/19
to ansible...@googlegroups.com
You’re using ansible from source. 
Could you try again using a released stable version that has been out for some time?
For instance 2.7.10. 

Dick



--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0e8f3343-45b4-439f-a94a-7fae3f4f60c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Felix Fontein

unread,
May 29, 2019, 12:15:30 AM5/29/19
to ansible...@googlegroups.com

samudr...@gmail.com

unread,
May 29, 2019, 9:30:14 AM5/29/19
to ansible...@googlegroups.com

Interesting suggestion and I will attempt to revert back to a stable release as suggested.

 

In the meantime,  I can confirm the 2.9.0dev0 framework acts differently with routeros ssh connections (the key is invalid always), yet that same key (last night I changed from DSA to RSA) works fine with scripted SSH (example below). I am not strictly a developer type, so I can be happy with  a stable version. Let the buyers beware. Is this is a bug worth reporting?

 

dev1@s5:~$ !1816

ssh -i /home/dev1/.ssh/3101_id_rsa  -p 22222 -t ttad...@10.0.0.99 << "ENDSSH"

> /system resource pr

> /ip route pr

> /interface bridge pr

> ENDSSH

Pseudo-terminal will not be allocated because stdin is not a terminal.

X11 forwarding request failed on channel 0

                   uptime: 1d9h39m10s

                  version: 6.43.2 (stable)

               build-time: Sep/18/2018 12:12:48

         factory-software: 6.41.3

              free-memory: 469.6MiB

             total-memory: 512.0MiB

                      cpu: ARMv7

                cpu-count: 1

            cpu-frequency: 800MHz

                 cpu-load: 17%

           free-hdd-space: 3700.0KiB

          total-hdd-space: 16.0MiB

  write-sect-since-reboot: 1302

         write-sect-total: 3568

               bad-blocks: 0%

        architecture-name: arm

               board-name: CRS328-24P-4S+

                 platform: MikroTik

 

Flags: X - disabled, A - active, D - dynamic,

C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,

B - blackhole, U - unreachable, P - prohibit

#      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE

0 A S  ;;; 3101 default gw to Verizon Fios ONT

        0.0.0.0/0                          10.0.0.1                  1

1 ADC  10.0.0.0/24        10.0.0.99       ether24                   0

2 ADC  10.0.1.0/24        10.0.1.1        3101-bridge               0

 

Flags: X - disabled, R - running

0 R ;;; 26may19/SH/LAN for 3101

     name="3101-bridge" mtu=auto actual-mtu=1500 l2mtu=1592 arp=enabled

     arp-timeout=auto mac-address=B8:69:F4:AC:F5:4D protocol-mode=rstp

     fast-forward=no igmp-snooping=no auto-mac=yes ageing-time=5m

     priority=0x8000 max-message-age=20s forward-delay=15s

     transmit-hold-count=6 vlan-filtering=no dhcp-snooping=no

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/2iVbWmB5Y3A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.


To post to this group, send email to ansible...@googlegroups.com.

Samudra Haque

unread,
Jun 9, 2019, 2:56:05 PM6/9/19
to Ansible Project
update: I de-installed all components of the earlier from-source distribution and used the apt-get on Ubuntu to install a pre-packaged version - with not much different result. I upgraded the keys on the Mikrotik host to DSA and made sure plain ssh calls worked from the command line. But running the same ansible-playbook script did not work  - what can I do to generate more debug info on the reason the system thinks it has an invalid key, when the Mikrotik log says nothing bad. Is the paramiko module not recognizing that it has already established the session? or, what is it expecting back? 

> uname -a; ansible --version

Linux s5 5.0.0-15-generic #16-Ubuntu SMP Mon May 6 17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
ansible 2.8.1
  config file = /home/dev1/TTLLC_ansible/ansible.cfg
  configured module search path = [u'/home/dev1/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.16 (default, Apr  6 2019, 01:42:57) [GCC 8.3.0]
...




On the Ubuntu 
2019-06-09 14:12:44,685 p=5254 u=dev1 |  Parsed /home/dev1/TTLLC_ansible/TTLLC_hosts inventory source with ini 
plugin
2019-06-09 14:12:44,887 p=5254 u=dev1 |  Loading callback plugin default of type stdout, v2.0 from /usr/lib/pyt
hon2.7/dist-packages/ansible/plugins/callback/default.pyc
2019-06-09 14:12:44,927 p=5254 u=dev1 |  PLAYBOOK: ansibleRouterOS.yml ****************************************
**********
2019-06-09 14:12:44,927 p=5254 u=dev1 |  1 plays in ansibleRouterOS.yml
2019-06-09 14:12:44,936 p=5254 u=dev1 |  PLAY [mikrotiks] *****************************************************
**********
2019-06-09 14:12:44,942 p=5254 u=dev1 |  TASK [Gathering Facts] ***********************************************
**********
2019-06-09 14:12:44,943 p=5254 u=dev1 |  task path: /home/dev1/TTLLC_ansible/ansibleRouterOS.yml:7
2019-06-09 14:12:44,955 p=5254 u=dev1 |  <10.0.0.99> attempting to start connection
2019-06-09 14:12:44,955 p=5254 u=dev1 |  <10.0.0.99> using connection plugin network_cli
2019-06-09 14:12:45,271 p=5262 u=dev1 |  <10.0.0.99> ESTABLISH PARAMIKO SSH CONNECTION FOR USER: ttadmins on PO
RT 22222 TO 10.0.0.99
2019-06-09 14:12:45,273 p=5267 u=dev1 | paramiko [10.0.0.99] starting thread (client mode): 0xa0058cd0L
2019-06-09 14:12:45,273 p=5267 u=dev1 | paramiko [10.0.0.99] Local version/idstring: SSH-2.0-paramiko_2.4.2
2019-06-09 14:12:45,296 p=5267 u=dev1 | paramiko [10.0.0.99] Remote version/idstring: SSH-2.0-ROSSSH
2019-06-09 14:12:45,296 p=5267 u=dev1 | paramiko [10.0.0.99] Connected (version 2.0, client ROSSSH)
2019-06-09 14:12:45,300 p=5267 u=dev1 | paramiko [10.0.0.99] kex algos:[u'diffie-hellman-group-exchange-sha256'
] server key:[u'ssh-rsa'] client encrypt:[u'aes128-ctr', u'aes192-ctr', u'aes256-ctr'] server encrypt:[u'aes128
-ctr', u'aes192-ctr', u'aes256-ctr'] client mac:[u'hmac-sha2-256'] server mac:[u'hmac-sha2-256'] client compres
s:[u'none'] server compress:[u'none'] client lang:[u''] server lang:[u''] kex follows?False
2019-06-09 14:12:45,300 p=5267 u=dev1 | paramiko [10.0.0.99] Kex agreed: diffie-hellman-group-exchange-sha256
2019-06-09 14:12:45,301 p=5267 u=dev1 | paramiko [10.0.0.99] HostKey agreed: ssh-rsa
2019-06-09 14:12:45,301 p=5267 u=dev1 | paramiko [10.0.0.99] Cipher agreed: aes128-ctr
2019-06-09 14:12:45,301 p=5267 u=dev1 | paramiko [10.0.0.99] MAC agreed: hmac-sha2-256
2019-06-09 14:12:45,301 p=5267 u=dev1 | paramiko [10.0.0.99] Compression agreed: none
2019-06-09 14:12:45,313 p=5267 u=dev1 | paramiko [10.0.0.99] Got server p (2048 bits)
2019-06-09 14:12:46,030 p=5267 u=dev1 | paramiko [10.0.0.99] kex engine KexGexSHA256 specified hash_algo <built
-in function openssl_sha256>
2019-06-09 14:12:46,031 p=5267 u=dev1 | paramiko [10.0.0.99] Switch to new keys ...
2019-06-09 14:12:46,089 p=5254 u=dev1 |  <10.0.0.99> local domain socket does not exist, starting it
2019-06-09 14:12:46,089 p=5254 u=dev1 |  <10.0.0.99> control socket path is /home/dev1/.ansible/pc/27577a985f
2019-06-09 14:12:46,089 p=5254 u=dev1 |  <10.0.0.99> loaded cliconf plugin for network_os routeros
2019-06-09 14:12:46,089 p=5254 u=dev1 |  network_os is set to routeros
2019-06-09 14:12:46,090 p=5254 u=dev1 |  <10.0.0.99> 
2019-06-09 14:12:46,090 p=5254 u=dev1 |  The full traceback is:
Traceback (most recent call last):
  File "/usr/bin/ansible-connection", line 104, in start
    self.connection._connect()
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/connection/network_cli.py", line 327, in _connect
    ssh = self.paramiko_conn._connect()
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/connection/paramiko_ssh.py", line 245, in _connect
    self.ssh = SSH_CONNECTION_CACHE[cache_key] = self._connect_uncached()
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/connection/paramiko_ssh.py", line 368, in _connect_unc
ached
    raise AnsibleConnectionFailure(msg)
AnsibleConnectionFailure: Invalid key

2019-06-09 14:12:46,092 p=5254 u=dev1 |  fatal: [10.0.0.99]: FAILED! => {
    "msg": "Invalid key"
}
2019-06-09 14:12:46,093 p=5254 u=dev1 |  PLAY RECAP ***********************************************************
**********
2019-06-09 14:12:46,093 p=5254 u=dev1 |  10.0.0.99                  : ok=0    changed=0    unreachable=0    fai
led=1    skipped=0    rescued=0    ignored=0   
2019-06-09 14:12:46,162 p=5262 u=dev1 |  shutdown complete
2019-06-09 14:12:46,231 p=5267 u=dev1 | paramiko [10.0.0.99] EOF in transport thread


on the mikrotik host:
14:08:38 ssh,debug,packet sending string 
14:08:38 ssh,debug,packet SSH-2.0-ROSSSH\r 
14:08:38 ssh,debug,packet 
14:08:38 ssh,debug client version: SSH-2.0-paramiko_2.4.2 
14:08:38 ssh,debug transport state: 0 --> 1 
14:08:38 ssh,debug,packet packet create: 20 
14:08:38 ssh,debug,packet ----- sending -----  
14:08:38 ssh,debug,packet => offset:216 [0xd8] 
14:08:38 ssh,debug,packet => size:d8 [0xd8] 
14:08:38 ssh,debug,packet 0000 00d4 0814 25cd b847 8bf9 2f72 e345 
14:08:38 ssh,debug,packet c74d 17ad ca66 0000 0024 6469 6666 6965 
14:08:38 ssh,debug,packet 2d68 656c 6c6d 616e 2d67 726f 7570 2d65 
14:08:38 ssh,debug,packet 7863 6861 6e67 652d 7368 6132 3536 0000 
14:08:38 ssh,debug,packet 0007 7373 682d 7273 6100 0000 2061 6573 
14:08:38 ssh,debug,packet 3132 382d 6374 722c 6165 7331 3932 2d63 
14:08:38 ssh,debug,packet 7472 2c61 6573 3235 362d 6374 7200 0000 
14:08:38 ssh,debug,packet 2061 6573 3132 382d 6374 722c 6165 7331 
14:08:38 ssh,debug,packet 3932 2d63 7472 2c61 6573 3235 362d 6374 
14:08:38 ssh,debug,packet 7200 0000 0d68 6d61 632d 7368 6132 2d32 
14:08:38 ssh,debug,packet 3536 0000 000d 686d 6163 2d73 6861 322d 
14:08:38 ssh,debug,packet 3235 3600 0000 046e 6f6e 6500 0000 046e 
14:08:38 ssh,debug,packet 6f6e 6500 0000 0000 0000 0000 0000 0000 
14:08:38 ssh,debug,packet 8d98 e0e0 6d45 98f7 
14:08:38 ssh,debug,packet -------------------- 
14:08:38 ssh,debug,packet ----- recieved ----- 
14:08:38 ssh,debug,packet => offset:2a0 [0x2a0] 
14:08:38 ssh,debug,packet => size:100 [0x100] 
14:08:38 ssh,debug,packet 0000 029c 0b14 3534 63f8 5d6b d841 2c66 
14:08:38 ssh,debug,packet 16fd 7a2b 474a 0000 00b7 6563 6468 2d73 
14:08:38 ssh,debug,packet 6861 322d 6e69 7374 7032 3536 2c65 6364 
14:08:38 ssh,debug,packet 682d 7368 6132 2d6e 6973 7470 3338 342c 
14:08:38 ssh,debug,packet 6563 6468 2d73 6861 322d 6e69 7374 7035 
14:08:38 ssh,debug,packet 3231 2c64 6966 6669 652d 6865 6c6c 6d61 
14:08:38 ssh,debug,packet 6e2d 6772 6f75 702d 6578 6368 616e 6765 
14:08:38 ssh,debug,packet 2d73 6861 3235 362c 6469 6666 6965 2d68 
14:08:38 ssh,debug,packet 656c 6c6d 616e 2d67 726f 7570 2d65 7863 
14:08:38 ssh,debug,packet 6861 6e67 652d 7368 6131 2c64 6966 6669 
14:08:38 ssh,debug,packet 652d 6865 6c6c 6d61 6e2d 6772 6f75 7031 
14:08:38 ssh,debug,packet 342d 7368 6131 2c64 6966 6669 652d 6865 
14:08:38 ssh,debug,packet 6c6c 6d61 6e2d 6772 6f75 7031 2d73 6861 
14:08:38 ssh,debug,packet 3100 0000 5773 7368 2d72 7361 2c73 7368 
14:08:38 ssh,debug,packet 2d65 6432 3535 3139 2c65 6364 7361 2d73 
14:08:38 ssh,debug,packet 6861 322d 6e69 7374 7032 3536 2c65 6364 
14:08:38 ssh,debug,packet -------------------- 
14:08:38 ssh,debug host key algo: ssh-rsa,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss 
14:08:38 ssh,debug kex algo: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
14:08:38 ssh,debug enc algo CS: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,3des-cbc 
14:08:38 ssh,debug mac algo CS: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96 
14:08:38 ssh,debug comp algo CS: none 
14:08:38 ssh,debug packet follows: 0 
14:08:38 ssh,debug agreed on: diffie-hellman-group-exchange-sha256 ssh-rsa aes128-ctr aes128-ctr hmac-sha2-256 hmac-sha2-256 none none  
14:08:38 ssh,debug,packet ----- recieved ----- 
14:08:38 ssh,debug,packet => offset:18 [0x18] 
14:08:38 ssh,debug,packet => size:18 [0x18] 
14:08:38 ssh,debug,packet 0000 0014 0622 0000 0400 0000 0800 0000 
14:08:38 ssh,debug,packet 2000 0000 0000 0000 
14:08:38 ssh,debug,packet -------------------- 
14:08:38 ssh,debug getPrime bits: 2048[1024-8192] returned: 2048 
14:08:38 ssh,debug,packet packet create: 31 
14:08:38 ssh,debug,packet ----- sending -----  
14:08:38 ssh,debug,packet => offset:280 [0x118] 
14:08:38 ssh,debug,packet => size:100 [0x100] 
14:08:38 ssh,debug,packet 0000 0114 081f 0000 0101 0083 da23 8b86 
14:08:38 ssh,debug,packet f5b7 f747 7bcb 1b22 d1f5 291d 3667 8ad7 
14:08:38 ssh,debug,packet 5764 a8e6 f4fd 90e0 efa5 4487 5a7f afe0 
14:08:38 ssh,debug,packet 0a1b 6abb adb4 f34a e807 f79e 2a76 0ec6 
14:08:38 ssh,debug,packet 823d 608a 88d3 e61a 8ee0 610f 0c55 a5c8 
14:08:38 ssh,debug,packet 7183 f02e 69f9 e218 19c3 6eaf 4fbf c2d5 
14:08:38 ssh,debug,packet c7f4 2f2b ee05 d974 5391 e90e 1f97 857d 
14:08:38 ssh,debug,packet 9757 9a2b 0e88 c17f dfa6 c49a b9fb 6c17 
14:08:38 ssh,debug,packet d459 e0aa 20bd ff79 a526 6619 694b f87b 
14:08:38 ssh,debug,packet 5eab 2f6e 80fd 5a70 36bd ac0c af5d 0135 
14:08:38 ssh,debug,packet 7324 612e 8503 ffa4 b3bb 616b 20d0 74f0 
14:08:38 ssh,debug,packet e079 32c1 2dab 03f2 2cd8 1c58 3841 06f2 
14:08:38 ssh,debug,packet 5d4d ca60 8b42 b98a 2aae 8cfc d961 24d1 
14:08:38 ssh,debug,packet baa4 afc5 a501 1305 5019 c1a2 94b3 0085 
14:08:38 ssh,debug,packet 5ccf 25af 3b25 6bb8 3077 30be b41b 1422 
14:08:38 ssh,debug,packet 6622 eadf f97d 984c d9ce f29c 0fed dc1f 
14:08:38 ssh,debug,packet -------------------- 
14:08:38 ssh,debug,packet ----- recieved ----- 
14:08:38 ssh,debug,packet => offset:110 [0x110] 
14:08:38 ssh,debug,packet => size:100 [0x100] 
14:08:38 ssh,debug,packet 0000 010c 0620 0000 0100 1add f4c2 1309 
14:08:38 ssh,debug,packet 876b 658a d357 3703 cc86 da2f 8601 8043 
14:08:38 ssh,debug,packet 3fcf e4e8 2d3b 727c c838 947f a4ba cb07 
14:08:38 ssh,debug,packet 2f19 8c4e dd22 deaa ea62 ea1b a06d 8965 
14:08:38 ssh,debug,packet d022 8124 03dd 8bf2 49a3 c800 8ea9 ad7b 
14:08:38 ssh,debug,packet e702 a9c5 d352 84c3 c098 c335 bb78 4446 
14:08:38 ssh,debug,packet 4895 3d0a 5b75 6e35 4b94 abdb ee78 1e33 
14:08:38 ssh,debug,packet 825d 9d93 e214 f731 0fc9 a6be bc37 9ed5 
14:08:38 ssh,debug,packet 75f4 8aa9 bcfe 9ed7 6fc8 701c eeed 1d3a 
14:08:38 ssh,debug,packet 6e5a de84 6ed6 0554 9525 d586 23a1 af2e 
14:08:38 ssh,debug,packet a9a0 b5fe 8e5f 3582 5748 2e56 fd6d 45e4 
14:08:38 ssh,debug,packet 9774 2ab2 0dd6 4440 202b 2324 919f c9b5 
14:08:38 ssh,debug,packet 40f1 3314 2e79 4f12 2574 860a 16ff 1e2c 
14:08:38 ssh,debug,packet d5c7 4811 7641 bf20 5d24 673c 9d49 8c80 
14:08:38 ssh,debug,packet 7fd9 5687 ab67 92b3 4ee6 12d7 cddb 4684 
14:08:38 ssh,debug,packet 21f2 b730 ae1e 247a 1355 9f7d 5e27 0976 
14:08:38 ssh,debug,packet -------------------- 
14:08:39 ssh,debug,packet packet create: 33 
14:08:39 ssh,debug,packet ----- sending -----  
14:08:39 ssh,debug,packet => offset:832 [0x340] 
14:08:39 ssh,debug,packet => size:100 [0x100] 
14:08:39 ssh,debug,packet 0000 033c 0a21 0000 0115 0000 0007 7373 
14:08:39 ssh,debug,packet 682d 7273 6100 0000 0103 0000 0101 00c1 
14:08:39 ssh,debug,packet 6f69 962c e458 b3c1 93e2 950f 67c1 bc64 
14:08:39 ssh,debug,packet 1d79 b8db 9c56 6e9d 9291 451d 2d50 0ba0 
14:08:39 ssh,debug,packet 2faa ee56 06c0 c3ba 2cdc 0c5c 1c9e 50b9 
14:08:39 ssh,debug,packet 6807 fa52 f389 87d8 108d c275 4506 5dcf 
14:08:39 ssh,debug,packet 5a60 3986 9584 f548 3c19 5bdf 1152 ca3a 
14:08:39 ssh,debug,packet 6850 5e78 1a26 5e8f 6069 d2f2 9a61 bb1c 
14:08:39 ssh,debug,packet 873f 9b8a 2f76 8b3f 916f a297 c793 11bc 
14:08:39 ssh,debug,packet 2303 1291 355f 8010 df31 1383 3fa5 0b6c 
14:08:39 ssh,debug,packet b25a e56b cd04 49af 68a5 c623 3afc c92d 
14:08:39 ssh,debug,packet e326 cf30 8c0c c4af af9c 5e99 aff5 a33a 
14:08:39 ssh,debug,packet a400 7ac1 f711 0626 7c18 8912 bc6a dd4f 
14:08:39 ssh,debug,packet 76de 5670 1d48 43a3 7304 0805 4914 70e0 
14:08:39 ssh,debug,packet 4395 29ca 7733 e1cb 3889 3217 5f7f 1a83 
14:08:39 ssh,debug,packet 763d 64f4 2963 cea8 3478 20e5 c6b4 bebf 
14:08:39 ssh,debug,packet -------------------- 
14:08:39 ssh,debug,packet packet create: 21 
14:08:39 ssh,debug,packet ----- sending -----  
14:08:39 ssh,debug,packet => offset:16 [0x10] 
14:08:39 ssh,debug,packet => size:10 [0x10] 
14:08:39 ssh,debug,packet 0000 000c 0a15 68ec 58c6 15a4 663d d6b9 
14:08:39 ssh,debug,packet -------------------- 
14:08:39 ssh,debug,packet ----- recieved ----- 
14:08:39 ssh,debug,packet => offset:10 [0x10] 
14:08:39 ssh,debug,packet => size:10 [0x10] 
14:08:39 ssh,debug,packet 0000 000c 0a15 0000 0000 0000 0000 0000 
14:08:39 ssh,debug,packet -------------------- 
14:08:39 ssh,debug transport state: 1 --> 2 
14:08:39 ssh,debug closing connection: 10.0.0.166:51588 (6) 
14:12:43 ssh,debug,packet sending string 
14:12:43 ssh,debug,packet SSH-2.0-ROSSSH\r 
14:12:43 ssh,debug,packet 
14:12:43 ssh,debug client version: SSH-2.0-paramiko_2.4.2 
14:12:43 ssh,debug transport state: 0 --> 1 
14:12:43 ssh,debug,packet packet create: 20 
14:12:43 ssh,debug,packet ----- sending -----  
14:12:43 ssh,debug,packet => offset:216 [0xd8] 
14:12:43 ssh,debug,packet => size:d8 [0xd8] 
14:12:43 ssh,debug,packet 0000 00d4 0814 a05d b85a ef14 c8f3 6d1b 
14:12:43 ssh,debug,packet 2051 8392 00ab 0000 0024 6469 6666 6965 
14:12:43 ssh,debug,packet 2d68 656c 6c6d 616e 2d67 726f 7570 2d65 
14:12:43 ssh,debug,packet 7863 6861 6e67 652d 7368 6132 3536 0000 
14:12:43 ssh,debug,packet 0007 7373 682d 7273 6100 0000 2061 6573 
14:12:43 ssh,debug,packet 3132 382d 6374 722c 6165 7331 3932 2d63 
14:12:43 ssh,debug,packet 7472 2c61 6573 3235 362d 6374 7200 0000 
14:12:43 ssh,debug,packet 2061 6573 3132 382d 6374 722c 6165 7331 
14:12:43 ssh,debug,packet 3932 2d63 7472 2c61 6573 3235 362d 6374 
14:12:43 ssh,debug,packet 7200 0000 0d68 6d61 632d 7368 6132 2d32 
14:12:43 ssh,debug,packet 3536 0000 000d 686d 6163 2d73 6861 322d 
14:12:43 ssh,debug,packet 3235 3600 0000 046e 6f6e 6500 0000 046e 
14:12:43 ssh,debug,packet 6f6e 6500 0000 0000 0000 0000 0000 0000 
14:12:43 ssh,debug,packet 7d57 9542 6810 baff 
14:12:43 ssh,debug,packet -------------------- 
14:12:43 ssh,debug,packet ----- recieved ----- 
14:12:43 ssh,debug,packet => offset:2a0 [0x2a0] 
14:12:43 ssh,debug,packet => size:100 [0x100] 
14:12:43 ssh,debug,packet 0000 029c 0b14 fc43 0ebd 0acc 2b57 4e80 
14:12:43 ssh,debug,packet 247a d1fa b0c1 0000 00b7 6563 6468 2d73 
14:12:43 ssh,debug,packet 6861 322d 6e69 7374 7032 3536 2c65 6364 
14:12:43 ssh,debug,packet 682d 7368 6132 2d6e 6973 7470 3338 342c 
14:12:43 ssh,debug,packet 6563 6468 2d73 6861 322d 6e69 7374 7035 
14:12:43 ssh,debug,packet 3231 2c64 6966 6669 652d 6865 6c6c 6d61 
14:12:43 ssh,debug,packet 6e2d 6772 6f75 702d 6578 6368 616e 6765 
14:12:43 ssh,debug,packet 2d73 6861 3235 362c 6469 6666 6965 2d68 
14:12:43 ssh,debug,packet 656c 6c6d 616e 2d67 726f 7570 2d65 7863 
14:12:43 ssh,debug,packet 6861 6e67 652d 7368 6131 2c64 6966 6669 
14:12:43 ssh,debug,packet 652d 6865 6c6c 6d61 6e2d 6772 6f75 7031 
14:12:43 ssh,debug,packet 342d 7368 6131 2c64 6966 6669 652d 6865 
14:12:43 ssh,debug,packet 6c6c 6d61 6e2d 6772 6f75 7031 2d73 6861 
14:12:43 ssh,debug,packet 3100 0000 5773 7368 2d65 6432 3535 3139 
14:12:43 ssh,debug,packet 2c65 6364 7361 2d73 6861 322d 6e69 7374 
14:12:43 ssh,debug,packet 7032 3536 2c65 6364 7361 2d73 6861 322d 
14:12:43 ssh,debug,packet -------------------- 
14:12:43 ssh,debug host key algo: ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,ssh-dss 
14:12:43 ssh,debug kex algo: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
14:12:43 ssh,debug enc algo CS: aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,3des-cbc 
14:12:43 ssh,debug mac algo CS: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96 
14:12:43 ssh,debug comp algo CS: none 
14:12:43 ssh,debug packet follows: 0 
14:12:43 ssh,debug agreed on: diffie-hellman-group-exchange-sha256 ssh-rsa aes128-ctr aes128-ctr hmac-sha2-256 hmac-sha2-256 none none  
14:12:43 ssh,debug,packet ----- recieved ----- 
14:12:43 ssh,debug,packet => offset:18 [0x18] 
14:12:43 ssh,debug,packet => size:18 [0x18] 
14:12:43 ssh,debug,packet 0000 0014 0622 0000 0400 0000 0800 0000 
14:12:43 ssh,debug,packet 2000 0000 0000 0000 
14:12:43 ssh,debug,packet -------------------- 
14:12:43 ssh,debug getPrime bits: 2048[1024-8192] returned: 2048 
14:12:43 ssh,debug,packet packet create: 31 
14:12:43 ssh,debug,packet ----- sending -----  
14:12:43 ssh,debug,packet => offset:280 [0x118] 
14:12:43 ssh,debug,packet => size:100 [0x100] 
14:12:43 ssh,debug,packet 0000 0114 081f 0000 0101 0083 da23 8b86 
14:12:43 ssh,debug,packet f5b7 f747 7bcb 1b22 d1f5 291d 3667 8ad7 
14:12:43 ssh,debug,packet 5764 a8e6 f4fd 90e0 efa5 4487 5a7f afe0 
14:12:43 ssh,debug,packet 0a1b 6abb adb4 f34a e807 f79e 2a76 0ec6 
14:12:43 ssh,debug,packet 823d 608a 88d3 e61a 8ee0 610f 0c55 a5c8 
14:12:43 ssh,debug,packet 7183 f02e 69f9 e218 19c3 6eaf 4fbf c2d5 
14:12:43 ssh,debug,packet c7f4 2f2b ee05 d974 5391 e90e 1f97 857d 
14:12:43 ssh,debug,packet 9757 9a2b 0e88 c17f dfa6 c49a b9fb 6c17 
14:12:43 ssh,debug,packet d459 e0aa 20bd ff79 a526 6619 694b f87b 
14:12:43 ssh,debug,packet 5eab 2f6e 80fd 5a70 36bd ac0c af5d 0135 
14:12:43 ssh,debug,packet 7324 612e 8503 ffa4 b3bb 616b 20d0 74f0 
14:12:43 ssh,debug,packet e079 32c1 2dab 03f2 2cd8 1c58 3841 06f2 
14:12:43 ssh,debug,packet 5d4d ca60 8b42 b98a 2aae 8cfc d961 24d1 
14:12:43 ssh,debug,packet baa4 afc5 a501 1305 5019 c1a2 94b3 0085 
14:12:43 ssh,debug,packet 5ccf 25af 3b25 6bb8 3077 30be b41b 1422 
14:12:43 ssh,debug,packet 6622 eadf f97d 984c d9ce f29c 0fed dc1f 
14:12:43 ssh,debug,packet -------------------- 
14:12:43 ssh,debug,packet ----- recieved ----- 
14:12:43 ssh,debug,packet => offset:110 [0x110] 
14:12:43 ssh,debug,packet => size:100 [0x100] 
14:12:43 ssh,debug,packet 0000 010c 0620 0000 0100 6f14 fefe 3226 
14:12:43 ssh,debug,packet 1e58 8396 9d7e 373f 6f24 47b1 1198 08f5 
14:12:43 ssh,debug,packet 1805 3121 10ac 60c7 de0a 8205 5cd1 3546 
14:12:43 ssh,debug,packet d842 f7b9 74ac 339d 8b3b bef9 ecde 44c4 
14:12:43 ssh,debug,packet dd97 eeec cdf0 f3b0 7974 c402 7f97 069c 
14:12:43 ssh,debug,packet 0783 0bf3 4676 e686 ac89 ed56 8be6 71f3 
14:12:43 ssh,debug,packet 4038 247f 11e5 5c9c 3780 fdb6 d1a6 46c5 
14:12:43 ssh,debug,packet c83b a188 ceee 02f2 b82a fdb2 9bbf 5c2e 
14:12:43 ssh,debug,packet 462f 7080 b14c c55c 292e 5672 381a c1af 
14:12:43 ssh,debug,packet 4fb0 fc38 7ee6 289b ea52 b4c4 6921 4040 
14:12:43 ssh,debug,packet 3400 029c 408f 1bb8 5e4b 05f6 fd37 c974 
14:12:43 ssh,debug,packet 67d0 a571 759b 88d1 5ce3 7791 b984 a2ed 
14:12:43 ssh,debug,packet d7c6 44db 1c45 9e1d 749b 1393 119d f57e 
14:12:43 ssh,debug,packet e82b 9a3c 108e 8e88 c8fd 851d 0dbb e307 
14:12:43 ssh,debug,packet e655 8d71 c383 c162 79ad 8ffc 03aa 147a 
14:12:43 ssh,debug,packet ec2f 6dbd ce3e 115a a5fd e18d a87f 0a09 
14:12:43 ssh,debug,packet -------------------- 
14:12:44 ssh,debug,packet packet create: 33 
14:12:44 ssh,debug,packet ----- sending -----  
14:12:44 ssh,debug,packet => offset:832 [0x340] 
14:12:44 ssh,debug,packet => size:100 [0x100] 
14:12:44 ssh,debug,packet 0000 033c 0a21 0000 0115 0000 0007 7373 
14:12:44 ssh,debug,packet 682d 7273 6100 0000 0103 0000 0101 00c1 
14:12:44 ssh,debug,packet 6f69 962c e458 b3c1 93e2 950f 67c1 bc64 
14:12:44 ssh,debug,packet 1d79 b8db 9c56 6e9d 9291 451d 2d50 0ba0 
14:12:44 ssh,debug,packet 2faa ee56 06c0 c3ba 2cdc 0c5c 1c9e 50b9 
14:12:44 ssh,debug,packet 6807 fa52 f389 87d8 108d c275 4506 5dcf 
14:12:44 ssh,debug,packet 5a60 3986 9584 f548 3c19 5bdf 1152 ca3a 
14:12:44 ssh,debug,packet 6850 5e78 1a26 5e8f 6069 d2f2 9a61 bb1c 
14:12:44 ssh,debug,packet 873f 9b8a 2f76 8b3f 916f a297 c793 11bc 
14:12:44 ssh,debug,packet 2303 1291 355f 8010 df31 1383 3fa5 0b6c 
14:12:44 ssh,debug,packet b25a e56b cd04 49af 68a5 c623 3afc c92d 
14:12:44 ssh,debug,packet e326 cf30 8c0c c4af af9c 5e99 aff5 a33a 
14:12:44 ssh,debug,packet a400 7ac1 f711 0626 7c18 8912 bc6a dd4f 
14:12:44 ssh,debug,packet 76de 5670 1d48 43a3 7304 0805 4914 70e0 
14:12:44 ssh,debug,packet 4395 29ca 7733 e1cb 3889 3217 5f7f 1a83 
14:12:44 ssh,debug,packet 763d 64f4 2963 cea8 3478 20e5 c6b4 bebf 
14:12:44 ssh,debug,packet -------------------- 
14:12:44 ssh,debug,packet packet create: 21 
14:12:44 ssh,debug,packet ----- sending -----  
14:12:44 ssh,debug,packet => offset:16 [0x10] 
14:12:44 ssh,debug,packet => size:10 [0x10] 
14:12:44 ssh,debug,packet 0000 000c 0a15 bcda a53a 4d0e f288 2ff2 
14:12:44 ssh,debug,packet -------------------- 
14:12:44 ssh,debug,packet ----- recieved ----- 
14:12:44 ssh,debug,packet => offset:10 [0x10] 
14:12:44 ssh,debug,packet => size:10 [0x10] 
14:12:44 ssh,debug,packet 0000 000c 0a15 0000 0000 0000 0000 0000 
14:12:44 ssh,debug,packet -------------------- 
14:12:44 ssh,debug transport state: 1 --> 2 
14:12:44 ssh,debug closing connection: 10.0.0.166:51738 (6) 
14:45:45 system,info,account user ttadmin logged in from 10.0.0.108 via telnet 


Proof that SSH works:

dev1@s5:~/TTLLC_ansible$ ssh -i /home/dev1/.ssh/3101_dsa -p 22222 -t ttad...@10.0.0.99 << "ENDSSH"
/ip route pr
ENDSSH
Pseudo-terminal will not be allocated because stdin is not a terminal.
X11 forwarding request failed on channel 0
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S  ;;; 3101 default gw to Verizon Fios ONT
        0.0.0.0/0                          10.0.0.1                  1
 1 ADC  10.0.0.0/24        10.0.0.99       ether24                   0
 2 ADC  10.0.1.0/24        10.0.1.1        3101-bridge               0

Reply all
Reply to author
Forward
0 new messages