Authentication Failed
See original GitHub issueHello and thank you for this project. I am attempting to scan a RouterOS device running version 7.1.3 and I am getting an authentication failure from paramiko. The RouterOS logs say expected msg: 50 got: 5. After some good old fashioned BING searches I saw similar issues opened with an Ansible module (see here: https://github.com/ansible/ansible/issues/55042). I tried a few suggestions mentioned in that thread but did not find luck. Regular ssh user@address -p 2223 works as expected.
python3 main.py -i 172.16.254.1 -p 2223 -u jared+cet1024w -ps PASSWORD
Mikrotik ip address: 172.16.254.1
Traceback (most recent call last):
File "/Users/jared/routeros-scanner/main.py", line 62, in <module>
main(args)
File "/Users/jared/routeros-scanner/main.py", line 28, in main
ssh_client.connect(hostname=args.ip, port=args.port, username=args.userName, password=args.password)
File "/usr/local/lib/python3.9/site-packages/paramiko/client.py", line 435, in connect
self._auth(
File "/usr/local/lib/python3.9/site-packages/paramiko/client.py", line 766, in _auth
raise saved_exception
File "/usr/local/lib/python3.9/site-packages/paramiko/client.py", line 753, in _auth
self._transport.auth_password(username, password)
File "/usr/local/lib/python3.9/site-packages/paramiko/transport.py", line 1563, in auth_password
return self.auth_handler.wait_for_response(my_event)
File "/usr/local/lib/python3.9/site-packages/paramiko/auth_handler.py", line 244, in wait_for_response
raise e
paramiko.ssh_exception.AuthenticationException: Authentication failed.`
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (1 by maintainers)
Top Results From Across the Web
I get a message that says “Authentication failed”
This kind of error happens when your instant messaging service is not allowing you to connect because it does not recognize your username...
Read more >What does Authentication Failed mean? - Sync
Authentication failed means there is a temporary block due to too many failed attempts. After 30 minutes after the last login attempt, the...
Read more >"Authentication failed" error when you try to log on to Unified ...
Fixes a problem in which you receive an "Authentication failed" error message when you use the UPN format to log on to a...
Read more >Authentication Failed - The Error Explained
When attempting to send an email, your email program may report an "Authentication Failed" error message. Authentication is the act of providing a...
Read more >Authentication Errors Example 1 Example 2
The error message states “Authentication failed! Try again.” You may have locked your account after too many attempts and your account will need...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You need to set the paramiko parameter “look_for_keys” to false.
Change line 29 in main.py to this:
ssh_client.connect(hostname=args.ip, port=args.port, username=args.userName, password=args.password, look_for_keys=False)I also have the same problem if you check the log file of mikrotik its clearly being authenticate but there’s something wrong if the routeros-scanner/commands/dns.py