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
Paramiko not connecting on Solaris 11 #2159
Comments
Please provide the details about the following:
p.s. I recommend to use triple backticks for code block (please edit). |
I am using Paramiko version: paramiko 2.12.0. I also used
As for the log file, here you go:
|
Thanks. Your remote ssh server is SunSSH, a fork of OpenSSH (refs. https://docs.oracle.com/cd/E53394_01/html/E54793/sshuser-6.html).
The password authentication failure is logged. Check log of remote ssh server in Solaris. I guess the given username and/or password is wrong.
|
@jun66j5 Yes, that is the interesting part is the credentials are not incorrect. It is the correct username/password but yet it is still complaining about "Authentication Failure". any ideas what I shoud try? |
Ah, sorry for missed description in this issue. You've connected 2 servers (gateway_host SunSSH, client_host OpenSSH) in the provided log:
Please check log of ssh server in client_host. Reason of the failure should be logged. |
@jun66j5 Do I check on the machine itself? Where would I check? Is there a log path? |
Log path of ssh server is depended on OS/distribution, syslog configuration, etc... What kind of distribution is the cilent_host (OpenSSH_8.4)?
|
On Linux & Solaris 10, the following code works but if it is Solaris 11, it throws the following error message
paramiko.ssh_exception.AuthenticationException: Authentication failed.
. The credentials/authentication details are correct. The host, username and password are all correct but for some reason it complains about Authentication failure. I know that Solaris 11 has much more beefed up security. Is there any thing else I need to add to my code to get this to work? (more details below):` def setup_remote_gateway_client_connection(self, gateway_host, gateway_username, gateway_password, client_host, client_username, client_password, gateway_port=22, client_port=22):
self.gateway_host=paramiko.SSHClient()
self.gateway_host.set_missing_host_key_policy(paramiko.AutoAddPolicy())
self.gateway_host.connect(gateway_host, username=gateway_username, password=gateway_password )
Upon execution, I get the following:
`fixture.py:28: in setup_remote_gateway_client_connection
client_host.connect(client_host, username=client_username, password=client_password, sock=gateway_channel)
/usr/local/lib/python3.10/site-packages/paramiko/client.py:450: in connect
self._auth(
/usr/local/lib/python3.10/site-packages/paramiko/client.py:781: in _auth
raise saved_exception
/usr/local/lib/python3.10/site-packages/paramiko/client.py:768: in _auth
self._transport.auth_password(username, password)
/usr/local/lib/python3.10/site-packages/paramiko/transport.py:1564: in auth_password
return self.auth_handler.wait_for_response(my_event)
self = <paramiko.auth_handler.AuthHandler object at 0x107691ae0>
event = <threading.Event object at 0x107691a20>
E paramiko.ssh_exception.AuthenticationException: Authentication failed.
/usr/local/lib/python3.10/site-packages/paramiko/auth_handler.py:259: AuthenticationException`
The text was updated successfully, but these errors were encountered: