E. Case
E. Case

Reputation: 71

rmate opens up file on another (non-networked) computer and vice versa

I do some work on an HPC (ECMWF) and use rmate to edit files, etc. I've used it successfully for about a year, and onboarded a few other people. Never has the following happened:

I walked my student through the installation steps as follows. Upon completing this, my student ran rmate <file> to open a file from his account on the hpc. It opened on my laptop. At this point we were both on the same wifi etc. The following day, after I used rmate successfully for a few hours, the files I was trying to open using rmate started to open on his computer (perhaps when he logged into the hpc). At this point, we were on different internets, networks, etc.

What is going on? I have checked the .ssh config file on both of our laptops, as well as the .bashrc files and bin/rmate files on the hpc. I can't figure out where or how we would be porting into each other's laptops.

Here are the steps I use to install rmate, based on rsub instructions and rmate instructions

  1. install sublime
  2. install rsub using sublime package manager
    1. install package control
    2. cmd + shift + p → choose package control: install package
    3. search for rsub and install
  3. restart sublime
  4. open .ssh/config and add RemoteForward 52698 localhost:52698 underHost jump.ecmwf.int a?-* a??-* hpc-* hpc2020-* ecs-* or Host *
  5. ssh into ECMWF
  6. run
mkdir ~/bin
curl -Lo ~/bin/rmate https://raw.githubusercontent.com/textmate/rmate/master/bin/rmate
chmod a+x ~/bin/rmate
  1. add export PATH="$PATH:$HOME/bin" to .bashrc
  2. type rmate FILENAME and edit the file in sublime on your home system

Thanks!

Upvotes: -2

Views: 15

Answers (0)

Related Questions