Skip to content
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

Using rsa ca based ssh authentication, fab repeatedly asks for password (even when given a correct one) #1445

Closed
VoittajaTomi opened this issue Mar 16, 2016 · 3 comments

Comments

@VoittajaTomi
Copy link

I have server public rsa certificate in ~/.ssh/id_rsa-cert.pub and can connect without a password using ssh. When using fabric I get prompted for the password, but the password is still not accepted.

fabfile:

from fabric.api import *
from fabric import *

def host_type():
  run("uname -s")

command line:

fab -i ~/.ssh/id_rsa -H user@server host_type

result:

[user@server] Executing task 'host_type'
[user@server] run: uname -s
[user@server] Login password for 'user': 
[user@server] Login password for 'user': 
[user@server] Login password for 'user': 
@kaaveland
Copy link

Can you put:

import logging
logging.basicConfig(level=logging.DEBUG)

At the top of your file and run this again (to investigate what paramiko does in this case) ?

@KarimJedda
Copy link

I started debugging a docker-swarm networking issue, and now I'm debugging this.

@kaaveland I have the same issue, paramiko logs some BS about "DEBUG:paramiko.transport:Switch to new keys ...", which when googled shows that nobody has an effing clue what it could be.

@ploxiln
Copy link

ploxiln commented Aug 24, 2017

Paramiko, which is what fabric uses for the ssh connection, does not yet support client auth key certificates.

see paramiko/paramiko#1042 and paramiko/paramiko#531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants