How to quickly install rmate.

This tutorial will have rmate installed on your server in about 60 seconds.

First, ssh to your remote server.

Verify you have install ruby, and the command gem is available.
For example on Ubuntu:

dpkg -s ruby

If ruby is not installed, then run:

[sudo] apt-get install ruby

After, run:

[sudo] gem install rmate

Now on your local machine, run:

ssh -R 52698:localhost:52698 user@example.org

Switch back to your remote machine and run:

rmate test.txt
Tags: