0
root@Rx:~# ssh -v root@[ip]
OpenSSH_5.5p1 Debian-6+squeeze1, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to [ip] [ip] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
root@Rx:~#

Randomly couldn't connect to my VPS, it was working literally hours ago, and I haven't done anything out of the ordinary. What would be the most likely problem?

Edit: I do remember accidentally doing sudo chmod -R 777 /var/. According to the second answer on ssh_exchange_identification: Connection closed by remote host /var/log/btmp should be 600, but I do not have btmp in my /var/log dir

dukevin
  • 1,640
  • 3
  • 19
  • 25

1 Answers1

-2

I accidentally did chmod 777 -R on /var/.

Was able to connect again by doing chmod 755 -R /var/ There are still some abnormalities so those I had to manually change the mode

dukevin
  • 1,640
  • 3
  • 19
  • 25