-
-
Notifications
You must be signed in to change notification settings - Fork 404
Closed
Description
I get the message _pygit2.GitError: Failed to authenticate SSH session: Waiting for USERAUTH response
with the following script:
import os
import pygit2
url = "ifigit@git.informatik.uni-leipzig.de:hardwarepraktikum/hwpb.git" # ssh public
class MyRemoteCallback (pygit2.RemoteCallbacks):
def credentials(self, url, username_from_url, allowed_types):
ssh = os.path.join(os.path.expanduser('~'), '.ssh')
print(ssh)
pubkey = os.path.join(ssh, 'id_rsa.pub')
privkey = os.path.join(ssh, 'id_rsa')
return pygit2.Keypair(username_from_url, pubkey, privkey, "")
repo = pygit2.clone_repository(url, "repo", callbacks=MyRemoteCallback())
id_rsa
and id_rsa.pub
are just created with ssh-keygen
and has no password.
Does the SSH connection also ask for the known hosts?
Maybe the objective-git issue is related: libgit2/objective-git#511
Metadata
Metadata
Assignees
Labels
No labels