-1

I am trying to log in to my server with ssh keys (I use putty to do it) but every time I try to connect it says Network error: Connection refused.

What could be the possible error? And how to rectify it?

1 Answer 1

0

'Connection refused' usually means that server computer does not have ssh server installed or launched.

Sometimes firewall blocks incoming connection. In such case you will have to enable incoming ssh connections in firewall's config.

2
  • I have 2 instances running on AWS, 1 instance is connected properly but the 2nd one is giving network error.
    – user999627
    Feb 18, 2019 at 9:29
  • Check your PuTty configuration for 2nd instance if it has correct host/port. Try to connect with ssh command from 1st instance to 2nd instance then in opposite direction.
    – John Doe
    Feb 18, 2019 at 16:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .