Announcement

Collapse
No announcement yet.

Linux server SSH error :: connection refused

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux server SSH error :: connection refused

    Can't connect to a Linux server(Debian Flavour) via SSH.

  • #2
    Hello David,

    There were unknown changes made in /etc/ssh/ssh_config file. To fix this issue, we had installed OpenSSH server following below mentioned steps:
    1. Logged into VPS through console and fired following commands:

      sudo apt-get purge openssh-server
      mv /etc/ssh /etc/ssh_old
      created new ssh directory in /etc
      sudo apt-get install openssh-server​
    2. Try ssh after performing above steps. If you get "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED", rename the known_hosts from .ssh/ in your local machine and try again.

    Regards,
    Nikhil

    Comment


    • #3
      Hello Nikhil,
      Can not connect to the server via SSH?
      1. Verify that the host IP address is correct.
      2. Verify the firewall rules.
      3. check the inbound rules allowed by the security group.
      4. Verify the port number allowed for ssh.
      5. Verify that the service is running properly.


      Regards,
      Nora.Kirk

      Comment


      • #4
        Hello David_123,
        1. Ping your VPS. As with most network connectivity problems the first step should be to ping your server.
        2. Use VNC to gain access if an internet connection is established but SSH is not.
        3. Verify the VPS Firewall Rules.
        4. Verify the SSH Service Status.
        5. Verify the SSH Port.

        Regards,
        Vineeta.

        Comment

        Working...
        X