fab-classic
fab-classic copied to clipboard
Fabric forcing password when not required
I recently upgraded Ubuntu and fab-classic versions, and now old code that used to work is failing because Fabric is now demanding a password when none is required.
chris@localhost:~$ ssh chris@localhost
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-91-generic x86_64)
chris@localhost:~$ exit
Connection to localhost closed.
chris@localhost:~$ . .env/bin/activate
(.env) chris@localhost:~$ pip freeze | grep fab-classic
fab-classic==1.19.2
(.env) chris@localhost:~$ python
(.env) chris@localhost:~$ python
Python 3.12.1 (main, Dec 10 2023, 15:07:36) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fabric.api import run, env
/home/chris/git/burlap/.env/lib/python3.12/site-packages/paramiko/transport.py:178: CryptographyDeprecationWarning: Blowfish has been deprecated
'class': algorithms.Blowfish,
>>> env.host_string = 'localhost'; result = run('uname -s')
[localhost] run: uname -s
Connect error: Authentication failed.
[localhost] Login password for 'chris':
Why is Fabric asking for a password when my localhost doesn't require one for that user?