How to make SSH connection between servers using public-key authentication?

What can I do to make an SSH connection from Japan to the United States faster?

  • I have a lifetime account with the Computer Science department I went to in the United States, but I now live in Japan. Since I've realized that relying on a personal desktop is inconvenient when moving, I'd like to use the department account I have, but I've noticed the distance of the connection while typing in SSH. Is there anything I can do above compressing the connection with -c?

  • Answer:

    Use Mosh. http://mosh.mit.edu It has a predictive local echo feature that lets you see your own typing immediately. But it's intelligent enough not to echo when it shouldn't. Mosh also lets you roam from Wi-Fi to cellular or to another ESSID, or put your laptop to sleep, without losing your connection. Over the longer term, try to transition to a workflow where your computer's communications are short-lived and transactional. E.g., Web traffic, Git pushes and pulls, and emails. But no long-lived interactive traffic unless you can't avoid it (like a videoconference).

Anonymous at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.