Closed
Description
Steps to replicate:
- Create a virtual server running Ubuntu 22.04 LTS and configure with an appropriate keypair (I have replicated this on instances running on both DigitalOcean and AWS)
- Create a minimal fabfile:
from fabric.api import env, run, task env.host_string = "X.X.X.X" # replace with IP address of your instance env.user = "myuser" # replace with the username on the instance @task def hello(): run("echo hello")
- Execute
fab hello
Expected result:
The instance executes the hello
command on the remote server and then disconnects
Actual result:
Authentication fails and the user is prompted to enter a password
➜ ~ fab hello
[X.X.X.X] run: echo hello
Connect error: Authentication failed.
[X.X.X.X] Login password for 'myuser':
If I follow these same steps, but instead try it on a Ubuntu 20.04 LTS server it works correctly. I haven't tried this with any non-LTS releases.
Versions:
Local machine:
➜ ~ fab --version
fab-classic 1.19.2
paramiko-ng 2.8.10
Python 3.11.4
I get the same result with other versions of Python too (e.g. 3.8.x).
Remote machine:
[email protected]:~# ssh -V
OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022
Metadata
Metadata
Assignees
Labels
No labels