-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sophos can't pass login disclaimer Netmiko #3563
Comments
Which version of Netmiko are you using? |
Can you show me what it looks like when you manually SSH to the device? Want to see the entire login disclaimer and menu. Note, I messed up the GitHub issue history here...as I asked something that was irrelevant and accidentally deleted your earlier response. |
This the banner after log in wit user and password Unauthorized access or violations of security regulations is unlawful and hence if monitoring reveals either, appropriate disciplinary action will be taken against the persons violating security regulations or making unauthorized use of this system.
Wait for confirmation and this is when connect handler got stock because is waiting for the menu Main Menu
|
I am using netmiko to log in into a Sophos device and run some commands, but the Connection handler get stock on the login disclaimer waiting for the confirmation (y/n). Log shows error:
Pattern not detected: 'Main Menu' in output.
It is waiting for a Main menu, but banner is still there, waiting to confirmed, need to send 'y' in to connechandler.
Just running this code
try:
print("Connecting to Sophos XG Firewall...")
SSH = ConnectHandler(**device)
except Exception as e:
print(f"error: {e}")
The text was updated successfully, but these errors were encountered: