Login succesful, but no shell

Hi,

I am using Core Shell now for a few months and everything worked brilliant until now. Now, when I connect I get the message f.i. [Connected 29 Dec 2019 at 15:14:53], but I don't get a shell to work with. After a while, the connection terminates. When I put the debug level to 1, I get the following messages:

----------------------------------------
Equivalent Command: ssh -v -o ServerAliveCountMax=3 -o ServerAliveInterval=15 -o ExitOnForwardFailure=yes xxx@xxx
15:37:34 Connecting…
15:37:34 Using Embeded Helper 4.2 (r42)
15:37:34 OpenSSH_8.0p1, OpenSSL 1.0.2q  20 Nov 2018
15:37:34 debug1: Reading configuration data /etc/ssh/ssh_config
15:37:34 debug1: /etc/ssh/ssh_config line 48: Applying options for *
15:37:34 debug1: Connecting to xxx [xxx] port 22.
15:37:34 debug1: Connection established.
15:37:34 debug1: identity file /Users/xxx/.ssh/id_rsa type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_rsa-cert type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_dsa type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_dsa-cert type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_ecdsa type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_ecdsa-cert type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_ed25519 type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_ed25519-cert type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_xmss type -1
15:37:34 debug1: identity file /Users/xxx/.ssh/id_xmss-cert type -1
15:37:34 debug1: Local version string SSH-2.0-OpenSSH_8.0
15:37:34 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Debian-10+deb10u1
15:37:34 debug1: match: OpenSSH_7.9p1 Debian-10+deb10u1 pat OpenSSH* compat 0x04000000
15:37:34 debug1: Authenticating to xxx:22 as 'xxx'
15:37:34 debug1: SSH2_MSG_KEXINIT sent
15:37:34 Authenticating…
15:37:34 debug1: SSH2_MSG_KEXINIT received
15:37:34 debug1: kex: algorithm: curve25519-sha256
15:37:34 debug1: kex: host key algorithm: ecdsa-sha2-nistp256
15:37:34 debug1: kex: server->client cipher: [removed because of link policy forum] MAC: <implicit> compression: none
15:37:34 debug1: kex: client->server cipher: [removed because of link policy forum]  MAC: <implicit> compression: none
15:37:34 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
15:37:34 debug1: Server host key: ecdsa-sha2-nistp256 SHA256:itMqu0GILuU45nTthqNezQGPPMicSJOpPwSR6n6nMiE
15:37:34 debug1: Host 'xxx' is known and matches the ECDSA host key.
15:37:34 debug1: Found key in /Users/xxx/.ssh/known_hosts:3
15:37:34 debug1: rekey out after 134217728 blocks
15:37:34 debug1: SSH2_MSG_NEWKEYS sent
15:37:34 debug1: expecting SSH2_MSG_NEWKEYS
15:37:34 debug1: SSH2_MSG_NEWKEYS received
15:37:34 debug1: rekey in after 134217728 blocks
15:37:34 debug1: Will attempt key: /Users/xxx/.ssh/id_rsa
15:37:34 debug1: Will attempt key: /Users/xxx/.ssh/id_dsa
15:37:34 debug1: Will attempt key: /Users/xxx/.ssh/id_ecdsa
15:37:34 debug1: Will attempt key: /Users/xxx/.ssh/id_ed25519
15:37:34 debug1: Will attempt key: /Users/xxx/.ssh/id_xmss
15:37:34 debug1: SSH2_MSG_EXT_INFO received
15:37:34 debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
15:37:34 debug1: SSH2_MSG_SERVICE_ACCEPT received
15:37:34 debug1: Authentications that can continue: publickey,password
15:37:34 debug1: Next authentication method: publickey
15:37:34 debug1: Trying private key: /Users/xxx/.ssh/id_rsa
15:37:34 debug1: Trying private key: /Users/xxx/.ssh/id_dsa
15:37:34 debug1: Trying private key: /Users/xxx/.ssh/id_ecdsa
15:37:34 debug1: Trying private key: /Users/xxx/.ssh/id_ed25519
15:37:34 debug1: Trying private key: /Users/xxx/.ssh/id_xmss
15:37:34 debug1: Next authentication method: password
15:37:34 debug1: read_passphrase: can't open /dev/tty: Device not configured
15:37:34 debug1: Authentication succeeded (password).
15:37:34 Authenticated to xxx ([xxx]:22).
15:37:34 debug1: channel 0: new [client-session]
15:37:34 debug1: Requesting no-more-sessions@openssh.com
15:37:34 debug1: Entering interactive session.
15:37:34 debug1: pledge: network
15:37:34 Connected
15:37:34 debug1: client_input_global_request: [removed because of link policy forum] want_reply 0
15:37:34 debug1: Sending environment.
15:38:35 Timeout, server [removed because of link policy forum]  not responding.
15:38:35 Abnormal Disconnect
15:38:35 Connection failed, retry after 3s…

Can you please help how to fix this?

Thank you in advance!

Grtz,
Martijn

Could you please run this command in your Terminal.app:

ssh -vvv -o ServerAliveCountMax=3 -o ServerAliveInterval=15 -o ExitOnForwardFailure=yes xxx@xxx

And upload the output log?

Thanks,

Hi Yang,

Thank you for your reply and your help. Below you will find the output of the command:

OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: resolving "[domain]" port 22
debug2: ssh_connect_direct
debug1: Connecting to [domain] [IP] port 22.
debug1: Connection established.
debug1: identity file /Users/martijnwilbrink/.ssh/id_rsa type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_rsa-cert type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_dsa type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_dsa-cert type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_ecdsa type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_ed25519 type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_xmss type -1
debug1: identity file /Users/martijnwilbrink/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Debian-10+deb10u1
debug1: match: OpenSSH_7.9p1 Debian-10+deb10u1 pat OpenSSH* compat 0x04000000
debug2: fd 5 setting O_NONBLOCK
debug1: Authenticating to [domain]:22 as 'xxx'
debug3: hostkeys_foreach: reading file "/Users/martijnwilbrink/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/martijnwilbrink/.ssh/known_hosts:3
debug3: load_hostkeys: loaded 1 keys from [domain]
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01[at_openssh_com],ecdsa-sha2-nistp384-cert-v01[at_openssh_com],ecdsa-sha2-nistp521-cert-v01[at_openssh_com],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
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[at_libssh_com],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01[at_openssh_com],ecdsa-sha2-nistp384-cert-v01[at_openssh_com],ecdsa-sha2-nistp521-cert-v01[at_openssh_com],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01[at_openssh_com],rsa-sha2-512-cert-v01[at_openssh_com],rsa-sha2-256-cert-v01[at_openssh_com],ssh-rsa-cert-v01[at_openssh_com],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: chacha20-poly1305[at_openssh_com],aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm[at_openssh_com],aes256-gcm[at_openssh_com]
debug2: ciphers stoc: chacha20-poly1305[at_openssh_com],aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm[at_openssh_com],aes256-gcm[at_openssh_com]
debug2: MACs ctos: umac-64-etm[at_openssh_com],umac-128-etm[at_openssh_com],hmac-sha2-256-etm[at_openssh_com],hmac-sha2-512-etm[at_openssh_com],hmac-sha1-etm[at_openssh_com],umac-64[at_openssh_com],umac-128[at_openssh_com],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm[at_openssh_com],umac-128-etm[at_openssh_com],hmac-sha2-256-etm[at_openssh_com],hmac-sha2-512-etm[at_openssh_com],hmac-sha1-etm[at_openssh_com],umac-64[at_openssh_com],umac-128[at_openssh_com],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib[at_openssh_com],zlib
debug2: compression stoc: none,zlib[at_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,curve25519-sha256@[at_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-group14-sha256,diffie-hellman-group14-sha1
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305[at_openssh_com],aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm[at_openssh_com],aes256-gcm[at_openssh_com]
debug2: ciphers stoc: chacha20-poly1305[at_openssh_com],aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm[at_openssh_com],aes256-gcm[at_openssh_com]
debug2: MACs ctos: umac-64-etm[at_openssh_com],umac-128-etm[at_openssh_com],hmac-sha2-256-etm[at_openssh_com],hmac-sha2-512-etm[at_openssh_com],hmac-sha1-etm[at_openssh_com],umac-64[at_openssh_com],umac-128[at_openssh_com],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm[at_openssh_com],umac-128-etm[at_openssh_com],hmac-sha2-256-etm[at_openssh_com],hmac-sha2-512-etm[at_openssh_com],hmac-sha1-etm[at_openssh_com],umac-64[at_openssh_com],umac-128[at_openssh_com],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib[at_openssh_com]
debug2: compression stoc: none,zlib[at_openssh_com]
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305[at_openssh_com] MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305[at_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: ecdsa-sha2-nistp256 SHA256:itMqu0GILuU45nTthqNezQGPPMicSJOpPwSR6n6nMiE
debug3: hostkeys_foreach: reading file "/Users/martijnwilbrink/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/martijnwilbrink/.ssh/known_hosts:3
debug3: load_hostkeys: loaded 1 keys from [domain]
debug3: hostkeys_foreach: reading file "/Users/martijnwilbrink/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/martijnwilbrink/.ssh/known_hosts:3
debug3: load_hostkeys: loaded 1 keys from [IP]
debug1: Host 'www.epic-paradigm.eu' is known and matches the ECDSA host key.
debug1: Found key in /Users/martijnwilbrink/.ssh/known_hosts:3
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
debug1: Will attempt key: /Users/martijnwilbrink/.ssh/id_rsa 
debug1: Will attempt key: /Users/martijnwilbrink/.ssh/id_dsa 
debug1: Will attempt key: /Users/martijnwilbrink/.ssh/id_ecdsa 
debug1: Will attempt key: /Users/martijnwilbrink/.ssh/id_ed25519 
debug1: Will attempt key: /Users/martijnwilbrink/.ssh/id_xmss 
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
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,password
debug3: start over, passed a different list publickey,password
debug3: preferred 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: Trying private key: /Users/martijnwilbrink/.ssh/id_rsa
debug3: no such identity: /Users/martijnwilbrink/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /Users/martijnwilbrink/.ssh/id_dsa
debug3: no such identity: /Users/martijnwilbrink/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /Users/martijnwilbrink/.ssh/id_ecdsa
debug3: no such identity: /Users/martijnwilbrink/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /Users/martijnwilbrink/.ssh/id_ed25519
debug3: no such identity: /Users/martijnwilbrink/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /Users/martijnwilbrink/.ssh/id_xmss
debug3: no such identity: /Users/martijnwilbrink/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
xxx@[domain]s password: 
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
debug1: Authentication succeeded (password).
Authenticated to [domain] ([IP]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting no-more-sessions[at_openssh_com]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype hostkeys-00[at_openssh_com] want_reply 0
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 5 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x48
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug1: Sending environment.
debug3: Ignored env TMPDIR
debug3: Ignored env XPC_FLAGS
debug3: Ignored env TERM_PROGRAM_VERSION
debug3: Ignored env TERM_PROGRAM
debug3: Ignored env XPC_SERVICE_NAME
debug3: Ignored env TERM_SESSION_ID
debug3: Ignored env TERM
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env SHELL
debug3: Ignored env HOME
debug3: Ignored env LOGNAME
debug3: Ignored env USER
debug3: Ignored env PATH
debug3: Ignored env SHLVL
debug3: Ignored env PWD
debug3: Ignored env OLDPWD
debug1: Sending env LC_CTYPE = UTF-8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env _
debug3: Ignored env __CF_USER_TEXT_ENCODING
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug3: send packet: type 80
debug3: send packet: type 1
packet_write_wait: Connection to [IP] port 22: Broken pipe

Cheers,
Martijn

Was it also failed on Terminal.app with ssh command line?