kryptco / kr

DEPRECATED A dev tool for SSH auth + Git commit/tag signing using a key stored in Krypton.
https://krypt.co/developers/
Other
1.59k stars 109 forks source link

Error Connection to UNKNOWN port 65535: Broken pipe #251

Open rtfpessoa opened 5 years ago

rtfpessoa commented 5 years ago

I started getting this errors some time ago but now krypton is not usable. I get this error everytime I pull/fetch in git or even when I am doing ssh to a server.

What can I be doing wrong?

Fetching origin
Krypton ▶ Requesting SSH authentication from phone
Krypton ▶ Phone approval required. Respond using the Krypton app
Krypton ▶ Success. Request Allowed ✔
packet_write_wait: Connection to UNKNOWN port 65535: Broken pipe
fatal: the remote end hung up upon initial contact
error: Could not fetch origin

Is it ok to share the output of ssh -vv git@bitbucket.org publicly?

kcking commented 5 years ago

Yes that output is fine to share (it prints some of your SSH configuration, the IP you are connecting to, and your bitbucket username if you log in successfully). The output of ssh -vv me.krypt.co is just as helpful if that is failing as well.

rtfpessoa commented 5 years ago

Normal SSH works it only breaks after a while specially if I am seeing logs or downloading something. When I get home I can post here. Is there a way to debug a git fetch? That is the best way to get the error consistently ?

rtfpessoa commented 5 years ago

@kcking sorry for the delay. I finally got time and was able to get the ssh verbose output of the git command failing.

It never fails when I disable krypton. But as soon as I enable krypton is really easy to get the error.

$ GIT_SSH_COMMAND="ssh -vvv" git clone git@bitbucket.org:user/repo
Cloning into '/tmp/test'...
OpenSSH_7.6p1 Ubuntu-4ubuntu0.1, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /home/rtfpessoa/.ssh/config
debug1: /home/rtfpessoa/.ssh/config line 4: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Executing proxy command: exec /usr/bin/krssh bitbucket.org 22
debug1: permanently_drop_suid: 1000
debug1: identity file /home/rtfpessoa/.ssh/id_krypton type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/rtfpessoa/.ssh/id_krypton-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/rtfpessoa/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/rtfpessoa/.ssh/id_ed25519-cert type -1
debug1: identity file /home/rtfpessoa/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/rtfpessoa/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/rtfpessoa/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/rtfpessoa/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/rtfpessoa/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/rtfpessoa/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.1
debug1: Remote protocol version 2.0, remote software version conker_1.1.17-9953920 app-153
debug1: no match: conker_1.1.17-9953920 app-153
debug2: fd 5 setting O_NONBLOCK
debug2: fd 4 setting O_NONBLOCK
debug1: Authenticating to bitbucket.org:22 as 'git'
debug3: hostkeys_foreach: reading file "/home/rtfpessoa/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file /home/rtfpessoa/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from bitbucket.org
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-dss,ssh-rsa
debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,chacha20-poly1305@openssh.com,arcfour256,arcfour128
debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,chacha20-poly1305@openssh.com,arcfour256,arcfour128
debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha2-256,hmac-sha1,hmac-sha1-96
debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha2-256,hmac-sha1,hmac-sha1-96
debug2: compression ctos: none
debug2: compression stoc: none
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ssh-rsa
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
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ssh-rsa SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A
debug3: hostkeys_foreach: reading file "/home/rtfpessoa/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file /home/rtfpessoa/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from bitbucket.org
debug1: Host 'bitbucket.org' is known and matches the RSA host key.
debug1: Found key in /home/rtfpessoa/.ssh/known_hosts:1
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug2: key: /home/rtfpessoa/.ssh/id_krypton (0x5558e6608c00), explicit, agent
debug2: key: /home/rtfpessoa/.ssh/id_rsa (0x5558e6609050), explicit, agent
debug2: key: /home/rtfpessoa/.ssh/id_ed25519 ((nil)), explicit
debug2: key: /home/rtfpessoa/.ssh/id_ecdsa ((nil)), explicit
debug2: key: /home/rtfpessoa/.ssh/id_dsa ((nil)), explicit
debug3: send packet: type 5
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:56kyAjkMYk5ghLUEw5ydL+3mLdD2zJNQY5mi7T+laps /home/rtfpessoa/.ssh/id_krypton
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg ssh-rsa blen 407
debug2: input_userauth_pk_ok: fp SHA256:56kyAjkMYk5ghLUEw5ydL+3mLdD2zJNQY5mi7T+laps
debug3: sign_and_send_pubkey: RSA SHA256:56kyAjkMYk5ghLUEw5ydL+3mLdD2zJNQY5mi7T+laps
Krypton ▶ Requesting SSH authentication from phone
Krypton ▶ Success. Request Allowed ✔
debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to bitbucket.org (via proxy).
debug2: fd 6 setting O_NONBLOCK
debug2: fd 7 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Entering interactive session.
debug1: pledge: proc
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug3: Ignored env GJS_DEBUG_TOPICS
debug3: Ignored env GIT_SSH_COMMAND
debug1: Sending env LC_TIME = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env USER
debug3: Ignored env fish_user_paths
debug3: Ignored env GIT_EXEC_PATH
debug3: Ignored env TEXTDOMAIN
debug3: Ignored env XDG_SEAT
debug3: Ignored env SSH_AGENT_PID
debug3: Ignored env XDG_SESSION_TYPE
debug3: Ignored env GREP_COLOR
debug3: Ignored env SHLVL
debug3: Ignored env HOME
debug3: Ignored env QT4_IM_MODULE
debug3: Ignored env DESKTOP_SESSION
debug3: Ignored env JRE_HOME
debug3: Ignored env GNOME_SHELL_SESSION_MODE
debug3: Ignored env GTK_MODULES
debug1: Sending env LC_CTYPE = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug1: Sending env LC_MONETARY = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
debug3: Ignored env VISUAL
debug3: Ignored env COLORTERM
debug3: Ignored env IM_CONFIG_PHASE
debug3: Ignored env MANDATORY_PATH
debug3: Ignored env OMF_PATH
debug3: Ignored env GTK_IM_MODULE
debug3: Ignored env LOGNAME
debug3: Ignored env DEFAULTS_PATH
debug3: Ignored env TERM
debug3: Ignored env USERNAME
debug3: Ignored env XDG_SESSION_ID
debug3: Ignored env GNOME_DESKTOP_SESSION_ID
debug3: Ignored env RBENV_SHELL
debug1: Sending env LC_COLLATE = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env WINDOWPATH
debug3: Ignored env PATH
debug3: Ignored env SESSION_MANAGER
debug3: Ignored env GNOME_TERMINAL_SCREEN
debug1: Sending env LC_ADDRESS = pt_PT.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env XDG_MENU_PREFIX
debug3: Ignored env XDG_RUNTIME_DIR
debug3: Ignored env DISPLAY
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug1: Sending env LC_TELEPHONE = pt_PT.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env XDG_CURRENT_DESKTOP
debug3: Ignored env GNOME_TERMINAL_SERVICE
debug3: Ignored env LS_COLORS
debug3: Ignored env XAUTHORITY
debug3: Ignored env XDG_SESSION_DESKTOP
debug3: Ignored env XMODIFIERS
debug1: Sending env LC_MESSAGES = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env GOPATH
debug1: Sending env LC_NAME = pt_PT.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env SHELL
debug3: Ignored env GDMSESSION
debug3: Ignored env QT_ACCESSIBILITY
debug3: Ignored env OPERATING_SYSTEM
debug3: Ignored env DEFAULT_USER
debug1: Sending env LC_MEASUREMENT = pt_PT.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env GJS_DEBUG_OUTPUT
debug3: Ignored env GPG_AGENT_INFO
debug1: Sending env LC_IDENTIFICATION = pt_PT.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env TEXTDOMAINDIR
debug3: Ignored env NODENV_SHELL
debug3: Ignored env QT_IM_MODULE
debug3: Ignored env XDG_VTNR
debug3: Ignored env CLICOLOR
debug3: Ignored env GPG_TTY
debug3: Ignored env JAVA_HOME
debug1: Sending env LC_ALL = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env PWD
debug3: Ignored env CLUTTER_IM_MODULE
debug3: Ignored env OMF_CONFIG
debug3: Ignored env XDG_CONFIG_DIRS
debug3: Ignored env XDG_DATA_DIRS
debug1: Sending env LC_NUMERIC = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug1: Sending env LC_PAPER = pt_PT.UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env MANPATH
debug3: Ignored env VTE_VERSION
debug3: Ignored env EDITOR
debug3: Ignored env JDK_HOME
debug1: Sending command: git-upload-pack 'user/repo'
debug2: channel 0: request exec confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 2097152 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
debug2: channel 0: window 1998749 sent adjust 98403
debug2: channel 0: window 1997647 sent adjust 99505
debug2: channel 0: rcvd adjust 16384
debug2: channel 0: rcvd adjust 16384
debug2: channel 0: rcvd adjust 16384
debug2: channel 0: rcvd adjust 16384
debug2: channel 0: rcvd adjust 16384
debug2: channel 0: rcvd adjust 9963
remote: Counting objects: 59487, done.
remote: Compressing objects: 100% (18766/18766), done.
debug2: channel 0: window 1998095 sent adjust 99057
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1990506 sent adjust 1066469.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 13107238.00 KiB/s   
debug2: channel 0: window 1982259 sent adjust 11489338.00 KiB/s   
debug2: channel 0: window 1982414 sent adjust 114738
debug2: channel 0: window 1966080 sent adjust 13107200.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 13107274.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072.00 KiB/s   
debug2: channel 0: window 1998268 sent adjust 988845.00 KiB/s   
debug2: channel 0: window 1990591 sent adjust 106561.00 KiB/s   
debug2: channel 0: window 1998788 sent adjust 983643.00 KiB/s   
debug2: channel 0: window 1998788 sent adjust 983649.00 KiB/s   
debug2: channel 0: window 1998828 sent adjust 9832433.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310723.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310722.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310721.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310721.00 KiB/s   
debug2: channel 0: window 1990226 sent adjust 1069262.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310722.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310722.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310728.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310728.00 KiB/s   
debug2: channel 0: window 1973922 sent adjust 1232309.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310724.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310724.00 KiB/s   
debug2: channel 0: window 1990426 sent adjust 1067260.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310720.00 KiB/s   
debug2: channel 0: window 1975362 sent adjust 1217900.00 KiB/s   
debug2: channel 0: window 1998788 sent adjust 9836490.00 KiB/s   
debug2: channel 0: window 1998828 sent adjust 9832490.00 KiB/s   
debug2: channel 0: window 1989646 sent adjust 1075060.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310720.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310723.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310725.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310725.00 KiB/s   
debug2: channel 0: window 1966660 sent adjust 1304925.00 KiB/s   
debug2: channel 0: window 1998268 sent adjust 9888420.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310720.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310724.00 KiB/s   
debug2: channel 0: window 1973202 sent adjust 1239500.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310720.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1968240 sent adjust 128912
debug2: channel 0: window 1998788 sent adjust 9836442.00 KiB/s   
debug2: channel 0: window 1998828 sent adjust 98324
debug2: channel 0: window 1996768 sent adjust 100384
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 1310723.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1991726 sent adjust 1054266.00 KiB/s   
debug2: channel 0: window 1973202 sent adjust 123950
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 1310721.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 1310722.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 1310727.00 KiB/s   
debug2: channel 0: window 1988986 sent adjust 108166
debug2: channel 0: window 1978042 sent adjust 119110
debug2: channel 0: window 1998828 sent adjust 98324
debug2: channel 0: window 1996768 sent adjust 100384
debug2: channel 0: window 1988986 sent adjust 1081667.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 1310727.00 KiB/s   
debug2: channel 0: window 1968820 sent adjust 128332
debug2: channel 0: window 1996108 sent adjust 101044
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 1310729.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 1310722.00 KiB/s   
debug2: channel 0: window 1978042 sent adjust 119110
debug2: channel 0: window 1998828 sent adjust 9832499.00 KiB/s   
debug2: channel 0: window 1996768 sent adjust 100384
debug2: channel 0: window 1988986 sent adjust 108166
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 13107299.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1968820 sent adjust 128332
debug2: channel 0: window 1996108 sent adjust 101044
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 13107208.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 13107206.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1978042 sent adjust 119110
debug2: channel 0: window 1998828 sent adjust 98324
debug2: channel 0: window 1996768 sent adjust 100384
debug2: channel 0: window 1988986 sent adjust 10816616.00 KiB/s   
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1968820 sent adjust 12833235.00 KiB/s   
debug2: channel 0: window 1996108 sent adjust 101044
debug2: channel 0: window 1966080 sent adjust 131072
debug2: channel 0: window 1966080 sent adjust 13107261.00 KiB/s   
debug3: send packet: type 1
packet_write_wait: Connection to UNKNOWN port 65535: Broken pipe
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Any ideas?

rtfpessoa commented 5 years ago

@kcking ideas?

rtfpessoa commented 5 years ago

@kcking ideas?

Hoomanix commented 3 years ago

I have the same problem... hope it gets resolved

xIGBClutchIx commented 3 years ago

I been having this issue also. Its like the port or something is not getting passed back correctly?

This is the default ssh config made by kr.

Host * 
    ProxyCommand /usr/bin/krssh %h %p 
    IdentityAgent ~/.kr/krd-agent.sock
    IdentityFile ~/.ssh/id_krypton

Removing ProxyCommand fixes it but then you don't get any logging and the host is unknown on the app so I assume that is what krssh does.

The hacky fix I found was making the ssh config as follows:

Host * 
    PKCS11Provider /usr/lib/kr-pkcs11.so
    ProxyCommand /usr/bin/krssh %h %p 
    IdentityAgent ~/.kr/krd-agent.sock
    IdentityFile ~/.ssh/id_krypton

It will make it ask for a PIN which I just leave blank. But you will get logging and the host being passed just you have that extra enter confirm basically. Not the best solution but does the job.