Today when I tried to ssh into a remote server with my own credentials, I got no response at all, the command just hanged there after I pressed enter. I can ping the server and I also tried nc -v -w 1 [host_ip_address] -z 22
, got connection succeeded!
. I can also telnet into port 22 on that server. So I'm pretty sure the ssh
daemon is running and it's listening to port 22.
ssh -v username@[hostname]
gives me:
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to cp-scl001 [10.5.60.224] port 22.
debug1: Connection established.
debug1: identity file /Users/yongfezh/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/yongfezh/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/yongfezh/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/yongfezh/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/yongfezh/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/yongfezh/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/yongfezh/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/yongfezh/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
Then the command hanged on the last line.
I met such issue before, it was because some docker container running on it was producing too many logs, and used up all the disk spaces. But I'm not sure why it prevented me from sshing in. I'm not sure if it's the same cause this time.
For now, I think I just need a way to log into it first and then see what's going on in the server.