{"action":"created","issue":{"url":"https://api.github.com/repos/ytti/oxidized/issues/573","repository_url":"https://api.github.com/repos/ytti/oxidized","labels_url":"https://api.github.com/repos/ytti/oxidized/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/ytti/oxidized/issues/573/comments","events_url":"https://api.github.com/repos/ytti/oxidized/issues/573/events","html_url":"https://github.com/ytti/oxidized/issues/573","id":179259023,"number":573,"title":"<host> raised Oxidized::PromptUndetect with msg \" Password: not matching configured prompt (?-mix:^([\\w\\s.@-]+[#>]\\s?)$)\"","user":{"login":"Alwaysin","id":7189936,"avatar_url":"https://avatars.githubusercontent.com/u/7189936?v=3","gravatar_id":"","url":"https://api.github.com/users/Alwaysin","html_url":"https://github.com/Alwaysin","followers_url":"https://api.github.com/users/Alwaysin/followers","following_url":"https://api.github.com/users/Alwaysin/following{/other_user}","gists_url":"https://api.github.com/users/Alwaysin/gists{/gist_id}","starred_url":"https://api.github.com/users/Alwaysin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alwaysin/subscriptions","organizations_url":"https://api.github.com/users/Alwaysin/orgs","repos_url":"https://api.github.com/users/Alwaysin/repos","events_url":"https://api.github.com/users/Alwaysin/events{/privacy}","received_events_url":"https://api.github.com/users/Alwaysin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T15:21:53Z","updated_at":"2016-09-26T15:35:26Z","closed_at":null,"body":"Hello!\r\n\r\nWith a Powerconnect, I got:\r\n\r\n```\r\n<host> raised Oxidized::PromptUndetect with msg \"\r\nPassword: not matching configured prompt (?-mix:^([\\w\\s.@-]+[#>]\\s?)$)\"\r\n<host> raised Errno::ECONNRESET with msg \"Connection reset by peer\"\r\n```\r\n\r\nIs it maybe because the password has a \"!\" inside? I think about that because on my switch I get:\r\n\r\n```\r\n26-Sep-2016 17:15:54 %AAA-W-REJECT: New ssh connection for user line ssh, source <oxidized_ip> destination <switch_ip>  REJECTED\r\n```\r\n\r\n```\r\n$ cat config \r\n---\r\nusername: username\r\npassword: password\r\nmodel: dell\r\ninterval: 600\r\nlog: \"/home/oxidized/.config/oxidized/log/oxidized.log\"\r\nuse_syslog: false\r\ndebug: false\r\nthreads: 30\r\ntimeout: 20\r\nretries: 3\r\nprompt: !ruby/regexp /^([\\w.@-]+[#>]\\s?)$/\r\nrest: 127.0.0.1:8888\r\nvars: {}\r\ngroups: {}\r\npid: \"/home/oxidized/.config/oxidized/pid\"\r\ninput:\r\n  default: ssh, telnet\r\n  debug: false\r\n  ssh:\r\n    secure: false\r\noutput:\r\n  default: git\r\n  file:\r\n    directory: \"/home/oxidized/.config/oxidized/deviceconfigs\"\r\n  git:\r\n    user: demma\r\n    email: demma@systran.fr\r\n    repo: \"/home/oxidized/.config/oxidized/oxidized.git\"\r\nsource:\r\n  default: csv\r\n  csv:\r\n    file: /home/oxidized/.config/oxidized/switch.db\r\n    delimiter: !ruby/regexp /:/\r\n    map:\r\n      name: 0\r\n      model: 1\r\n      username: 2\r\n      password: 3\r\n    vars_map:\r\n      enable: 4\r\nmodel_map:\r\n  cisco: ios\r\n  juniper: junos\r\n  dell: powerconnect\r\n  force10: ftos\r\n```\r\n\r\n```\r\n$ cat switch.db \r\nswitch1:dell:admin:pass!word\r\n\r\n```\r\n\r\n```\r\n# ssh switch1\r\n\r\nPassword:********\r\n\r\nswitch1> \r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/ytti/oxidized/issues/comments/249606507","html_url":"https://github.com/ytti/oxidized/issues/573#issuecomment-249606507","issue_url":"https://api.github.com/repos/ytti/oxidized/issues/573","id":249606507,"user":{"login":"ytti","id":200527,"avatar_url":"https://avatars.githubusercontent.com/u/200527?v=3","gravatar_id":"","url":"https://api.github.com/users/ytti","html_url":"https://github.com/ytti","followers_url":"https://api.github.com/users/ytti/followers","following_url":"https://api.github.com/users/ytti/following{/other_user}","gists_url":"https://api.github.com/users/ytti/gists{/gist_id}","starred_url":"https://api.github.com/users/ytti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytti/subscriptions","organizations_url":"https://api.github.com/users/ytti/orgs","repos_url":"https://api.github.com/users/ytti/repos","events_url":"https://api.github.com/users/ytti/events{/privacy}","received_events_url":"https://api.github.com/users/ytti/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T15:35:26Z","updated_at":"2016-09-26T15:35:26Z","body":"Maybe add:\r\n```\r\ninput:\r\n  debug: true\r\n```\r\n\r\nAnd/or tshark/tcpdump. It indeed looks like you may enter the password, and then reobserve the password prompt.\r\nTshark/tcpdump would prove what you're actually sending.\r\n"}}
{"actor":{"display_login":"ytti"}}