Can't push new version of an LFS file - authentication error

#1
by zeio - opened
Owner
edited May 9

Can't push new version of an LFS file - authentication error. Git trace:

03:45:57.875178 trace git-lfs: exec: ssh 'git@hf.co' 'git-lfs-authenticate datasets/zeio/branch upload'
03:46:00.038018 trace git-lfs: ssh: git@hf.co failed, error: unexpected end of JSON input, message:  (try: 0/6)
03:46:00.038062 trace git-lfs: run_command: ssh git@hf.co git-lfs-authenticate datasets/zeio/branch upload
03:46:00.038187 trace git-lfs: exec: ssh 'git@hf.co' 'git-lfs-authenticate datasets/zeio/branch upload'
03:46:02.163354 trace git-lfs: ssh: git@hf.co failed, error: unexpected end of JSON input, message:  (try: 1/6)
03:46:02.163376 trace git-lfs: run_command: ssh git@hf.co git-lfs-authenticate datasets/zeio/branch upload
03:46:02.163478 trace git-lfs: exec: ssh 'git@hf.co' 'git-lfs-authenticate datasets/zeio/branch upload'
03:46:04.369266 trace git-lfs: ssh: git@hf.co failed, error: unexpected end of JSON input, message:  (try: 2/6)
03:46:04.369303 trace git-lfs: run_command: ssh git@hf.co git-lfs-authenticate datasets/zeio/branch upload
03:46:04.369406 trace git-lfs: exec: ssh 'git@hf.co' 'git-lfs-authenticate datasets/zeio/branch upload'
03:46:06.542021 trace git-lfs: ssh: git@hf.co failed, error: unexpected end of JSON input, message:  (try: 3/6)
03:46:06.542050 trace git-lfs: run_command: ssh git@hf.co git-lfs-authenticate datasets/zeio/branch upload
03:46:06.542137 trace git-lfs: exec: ssh 'git@hf.co' 'git-lfs-authenticate datasets/zeio/branch upload'
03:46:08.598798 trace git-lfs: ssh: git@hf.co failed, error: unexpected end of JSON input, message:  (try: 4/6)
03:46:08.598923 trace git-lfs: run_command: ssh git@hf.co git-lfs-authenticate datasets/zeio/branch upload
03:46:08.599054 trace git-lfs: exec: ssh 'git@hf.co' 'git-lfs-authenticate datasets/zeio/branch upload'
03:46:10.796488 trace git-lfs: ssh: git@hf.co failed, error: unexpected end of JSON input, message:  (try: 5/6)
batch request: unexpected end of JSON input
error: failed to push some refs to 'hf.co:datasets/zeio/branch'

When I run command ssh 'git@hf.co' -v 'git-lfs-authenticate datasets/zeio/branch upload':

OpenSSH_9.6p1, OpenSSL 3.0.12 24 Oct 2023
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/9999999gentoo-security.conf
debug1: Reading configuration data /etc/ssh/ssh_config.d/9999999gentoo.conf
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to hf.co [34.202.8.246] port 22.
debug1: Connection established.
debug1: identity file /home/zeio/.ssh/id_rsa type -1
debug1: identity file /home/zeio/.ssh/id_rsa-cert type -1
debug1: identity file /home/zeio/.ssh/id_ecdsa type -1
debug1: identity file /home/zeio/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/zeio/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/zeio/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/zeio/.ssh/id_ed25519 type 3
debug1: identity file /home/zeio/.ssh/id_ed25519-cert type -1
debug1: identity file /home/zeio/.ssh/id_ed25519_sk type -1
debug1: identity file /home/zeio/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/zeio/.ssh/id_xmss type -1
debug1: identity file /home/zeio/.ssh/id_xmss-cert type -1
debug1: identity file /home/zeio/.ssh/id_dsa type -1
debug1: identity file /home/zeio/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.6
debug1: Remote protocol version 2.0, remote software version Huggingface-SSHD
debug1: compat_banner: no match: Huggingface-SSHD
debug1: Authenticating to hf.co:22 as 'git'
debug1: load_hostkeys: fopen /home/zeio/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:dVjzGIdV7d6cwKIeZiCoRMa2gMvSKfGZAvHf4gMiMao
debug1: load_hostkeys: fopen /home/zeio/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'hf.co' is known and matches the ED25519 host key.
debug1: Found key in /home/zeio/.ssh/known_hosts:16
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss>
debug1: kex_ext_info_check_ver: ping@openssh.com=<0>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: /home/zeio/.ssh/id_ed25519 ED25519 SHA256:eCFQg0VlqtSqmlSf+goHs0TqxCjqYImXzc08iD0H7og agent
debug1: Will attempt key: /home/zeio/.ssh/id_rsa
debug1: Will attempt key: /home/zeio/.ssh/id_ecdsa
debug1: Will attempt key: /home/zeio/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/zeio/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/zeio/.ssh/id_xmss
debug1: Will attempt key: /home/zeio/.ssh/id_dsa
debug1: Offering public key: /home/zeio/.ssh/id_ed25519 ED25519 SHA256:eCFQg0VlqtSqmlSf+goHs0TqxCjqYImXzc08iD0H7og agent
debug1: Server accepts key: /home/zeio/.ssh/id_ed25519 ED25519 SHA256:eCFQg0VlqtSqmlSf+goHs0TqxCjqYImXzc08iD0H7og agent
Authenticated to hf.co ([34.202.8.246]:22) using "publickey".
debug1: channel 0: new session [client-session] (inactive timeout: 0)
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: Sending environment.
debug1: channel 0: setting env COLORTERM = "truecolor"
debug1: channel 0: setting env LANG = "en_US.utf8"
debug1: Sending command: git-lfs-authenticate datasets/zeio/branch upload
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2280, received 1480 bytes, in 0.3 seconds
Bytes per second: sent 7744.0, received 5026.8
debug1: Exit status 0

Sign up or log in to comment