Report this

What is the reason for this report?

SSH connection timeout

Posted on May 10, 2018

downloaded geth repo and ran “make”. Note I didn’t even run the compiled result! Now I can access to console only via website but not with terminal from my coputer. How to fix that?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Can you share some more details about the issue you’re encountering? Can you share the exact error you are seeing when attempting to connect?

You should also be aware that if you plan to use geth to mine cryptocurrency this is only allowed on our optimized droplet plans which feature dedicated vCPU cores. Mining cryptocurrency on standard droplets is disruptive to other users and is not allowed.

When you next try ssh, use ssh -v -i [key] user@host

You should get some additional information:

  • is ssh even responding?
  • key or permissions issue?
  • username or password issue?

Hello there,

We understand the SSH Connection times out frequently when working on your application. You can make the following changes in the sshd_config file and try once again.

  1. Host *
  2. ServerAliveInterval 300
  3. ServerAliveCountMax 2
  4. KeepAlive yes
  5. ClientAliveInterval 300
  6. ClientAliveCountMax 2

The ClientAliveInterval parameter specifies the time in seconds that the server will wait before sending a null packet to the client system to keep the connection alive.

Once the changes are made, you can reload the ssh daemon and give it another try.

  1. systemctl reload sshd

You can also reach out to our Support so that our technical agents can assist you further.

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.