Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

README: mention localhost for ssh tunnel example #6

Closed
wants to merge 1 commit into from

2 participants

Aaron Oxborrow Allan Odgaard
Aaron Oxborrow

previously the README referenced using localhost with the SSH tunnel. i recently came back to it and had to figure out why 'RMATE_HOST=auto' wasn't working... 

Aaron Oxborrow README: mention localhost for ssh tunnel example
previously the README referenced using localhost with the SSH tunnel. i recently came back to it and had to figure out why 'RMATE_HOST=auto' wasn't working... 
dbab853
Allan Odgaard
Owner

I’m a little confused here — localhost is the default and explicitly setting host to localhost in rmate.rc is redundant and wouldn’t override RMATE_HOST or a potential --host argument.

Aaron Oxborrow

ah, the issue is with rmate 1.4, where the default is auto. the rmate link in the preference pane of my Texmate, build 9311, points to rmate 1.4... shouldn't it be the latest?

Allan Odgaard
Owner

It should, and it will with next build :)

Setting the default to auto was a recent pull request that I decided to revert ~4 days ago (just after doing the last public build).

I did like your overall README changes so I’ll just pull and reword slightly.

Allan Odgaard sorbits closed this pull request from a commit
Allan Odgaard sorbits Update README
Closes #6.
d64d054
Allan Odgaard sorbits closed this in d64d054
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 21, 2012
  1. README: mention localhost for ssh tunnel example

    Aaron Oxborrow authored
    previously the README referenced using localhost with the SSH tunnel. i recently came back to it and had to figure out why 'RMATE_HOST=auto' wasn't working... 
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 4 deletions.
  1. +7 −4 README.mdown
11 README.mdown
View
@@ -2,15 +2,18 @@
If you wish to activate TextMate from an ssh session you can do so by copying the `rmate` (ruby) script to the server you are logged into. The script will connect back to TextMate running on your Mac so you should setup an ssh tunnel (as your Mac is likely behind NAT):
- ssh -R 52698:127.0.0.1:52698 «server»
+ ssh -R 52698:127.0.0.1:52698 user@server
# Usage
-Call `rmate --help` for options. Default options can be set in `/etc/rmate.rc` or `~/.rmate.rc`, e.g.:
+ rmate <file>
- host: auto
- port: 52698
+Call `rmate --help` for options. Default options can be set in `/etc/rmate.rc` or `~/.rmate.rc`, e.g.:
+```yaml
+host: auto # use 'localhost' with ssh tunnel
+port: 52698
+```
You can also set the `RMATE_HOST` and `RMATE_PORT` environment variables.
For more info see this [blog post about rmate](http://blog.macromates.com/2011/mate-and-rmate/ "TextMate Blog » mate and rmate").
Something went wrong with that request. Please try again.