Open petasis opened 3 years ago
It looks like a bug. Thanks!
I can propose a little trick for your case. Try:
...
tunnel = SSHTunnelForwarder(
ssh_address="socialwebobservatory",
ssh_port=222,
ssh_username="user",
ssh_password="pass",
#ssh_private_key="/home/user/.ssh/id_rsa",
remote_bind_address=('127.0.0.1', 9200),
compression=True,
logger=create_logger(loglevel=1)
)
tunnel.ssh_pkeys = [] # DIRTY HACK!! Change it in future!
...
the hack is not working for me.
It looks like a bug. Thanks!
I can propose a little trick for your case. Try:
... tunnel = SSHTunnelForwarder( ssh_address="socialwebobservatory", ssh_port=222, ssh_username="user", ssh_password="pass", #ssh_private_key="/home/user/.ssh/id_rsa", remote_bind_address=('127.0.0.1', 9200), compression=True, logger=create_logger(loglevel=1) ) tunnel.ssh_pkeys = [] # DIRTY HACK!! Change it in future! ...
This hack is not working for me. Still tries to use the pkey even when I just want to connect with user/password
use paramiko 2.7.2 to solve it when you are using ssh tunnel with ssh key instead of password
None of the other solutions worked for me, however specifying host_pkey_directories
finally got the error to stop showing up. Even though my ssh_pkey
property pointed to a valid file with path, without also specifying the folder, it will fall back to checking the id_rsa, even if you are successfully using a key with no password already, like I was.
None of the other solutions worked for me, however specifying
host_pkey_directories
finally got the error to stop showing up. Even though myssh_pkey
property pointed to a valid file with path, without also specifying the folder, it will fall back to checking the id_rsa, even if you are successfully using a key with no password already, like I was.
This worked for me as well. 🎩
Hi all,
For some reason, ssh tunnels that used to work, stopped working. (I have updated the server to Fedora 33, but is this a reason for ssh connections failure?).
sshtunnel works if I use a password:
Gives the following log:
However, if I use the key, it does not work:
Gives the following log:
Of course, if I use ssh to login, the key works.
Any ideas?