From 85b264466006c5ac9c191dfd80f42fd20280f60b Mon Sep 17 00:00:00 2001 From: tusharmath Date: Sun, 19 Apr 2015 23:08:37 +0530 Subject: [PATCH 1/2] add: setting-up-mosh-on-koding --- guides/setting-up-mosh-on-koding.md | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 guides/setting-up-mosh-on-koding.md diff --git a/guides/setting-up-mosh-on-koding.md b/guides/setting-up-mosh-on-koding.md new file mode 100644 index 000000000..1218dedb3 --- /dev/null +++ b/guides/setting-up-mosh-on-koding.md @@ -0,0 +1,45 @@ +--- +title: Setting up MOSH on Koding.io +author: tushar-mathur +date: 2015-apr-19 +categories: [koding, mosh] +template: page.toffee +--- + +Using a remote server for development is so much cooler for obvious reasons. Using MOSH on top of it naturally makes the experience much better. + +###[Koding.com](https://koding.com) + [MOSH](https://mosh.mit.edu/#getting) = *Ecstasy* + + +Here is how you can get mosh to work on koding.com + +1. SSH into the koding server from your client machine. If you haven't added ssh keys yet checkout their [tutorial](http://learn.koding.com/guides/ssh-into-your-vm/). + ```bash + ssh @.koding.io + ``` + +2. Setup [uncomplicated firewall](http://learn.koding.com/guides/enable-ufw/) in the remote machine. + ```bash + sudo apt-get install ufw + sudo ufw status verbose + sudo ufw enable + ``` + +3. Open up critical ports first viz. HTTP, SSH and 56789 for koding. + ```bash + sudo ufw allow ssh + sudo ufw allow http + sudo ufw allow 56789/tcp + ``` + +4. Open up the port (60001 is used by mosh in most cases) on the remote machine for the client machine to access it via udp. + ```bash + sudo ufw allow 60001/udp + ``` + +5. Connect the remote machine by running the mosh command from the client machine. This will automatically ssh into the remote server and start the mosh-server. + ```bash + mosh @.koding.io + ``` + +That's it, you are done. From 2673971edc3f4a79f469d20087203d7395af717e Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Mon, 20 Apr 2015 00:18:01 +0530 Subject: [PATCH 2/2] Update setting-up-mosh-on-koding.md --- guides/setting-up-mosh-on-koding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/setting-up-mosh-on-koding.md b/guides/setting-up-mosh-on-koding.md index 1218dedb3..f79166055 100644 --- a/guides/setting-up-mosh-on-koding.md +++ b/guides/setting-up-mosh-on-koding.md @@ -1,7 +1,7 @@ --- title: Setting up MOSH on Koding.io -author: tushar-mathur -date: 2015-apr-19 +author: tusharmath@gmail.com +date: 2015-04-19 categories: [koding, mosh] template: page.toffee ---