Ssh: connect to host xxxx-xxxx.local port 22: Connection refused

I went through the process of setting up a new SSH key (on mac) and SSH passphrase but have not been able to log into the server using SSH at all, just keep getting the error in the title. Not sure what I’m doing wrong as everything seems to be in order.

help?

Bit of a noob with with stuff so go easy on me

hey!

What is the error you are getting?

Hi,

when I try to log in in the terminal using ssh I get the following response:

ssh: connect to host xxxx-xxxx.local port 22: Connection refused

Hi nybe!

Have you been following our SSH guide step by step? It should work if executed correctly.

I assume, your normal connection to the StartOS server is working properly in the browser using .local addresses?

If SSH still isn’t working, try these troubleshooting steps:

  1. Make sure your firewall isn’t blocking port 22 on your client machine.
  2. Check if the StartOS machine is reachable:
    ping xxxx-xxxx.local
    
    If it doesn’t respond, try using its IP address instead of .local:
    ssh start9@<IP_ADDRESS>
    

Let me know how it goes!

I did follow the directions on the SSH guide page and set up a new key for SSH on my local client.

firewall is not currently on.

tried pinging and it is reachable.

tried ssh start9@<IP_ADDRESS> and get same “connection refused” response

is there a way to reset or restart SSH services on Start9?

Hmmm, okay. Try using this command to check if port 22 is open:

telnet [server-IP] 22

If you receive a rejection message or the connection fails, it means port 22 is closed or blocked by the firewall.

Without terminal access on your server, it’s not possible to check the SSH status on StartOS. You can try rebooting the device to restart all processes and see if that helps.

I shutdown the server and let it sit for about 30 mins.

Now able to connect SSH on port 22

thanks for the ideas and help!

1 Like