I have a server, where I can login using SSH, but do not get a shell (anymore). What can I do to login to a minimal shell to debug the issue? Here is the log of ssh -vvvv
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering ED25519 public key: user@myhost
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: /home/user/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).
Authenticated to remotehost ([x.x.x.x]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: network
Normally a session would continue with
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
But here ssh just hangs.
How can I get a login shell? I tried ssh -t user@host /bin/sh
but it did not work.
I am not sure if something in the ssh server is wrong (maybe waiting for rDNS resolution while there are network errors?) or if some login shell script is blocking the shell.
0 Answers