We are using rsub with multiple computers in the same server. However, every file we open gets directed to the same computer. How can we address this issue?
In Sublime Text menu, go to Preferences|Browse Packages
. Create a file called rsub.sublime-settings
in the Packages/User
directory:
important: use a different port for each machine that will be connecting to the same server.
--> Packages/User/rsub.sublime-settings
// rsub user settings
{
/*
rsub listen port.
IMPORTANT: Use a different port for each machine.
*/
"port": 52699,
/*
rsub listen host
WARNING: it's NOT recommended to change this option,
use SSH tunneling instead.
*/
"host": "localhost"
}
Change your .ssh/config
file:
--> ~/.ssh/config
Host example.com
RemoteForward 52699 localhost:52699
Export the following variables in your profile
(bash_profile, zshrc, etc.).
important: Make sure RMATE_PORT
is the same that you used in your sublime settings.
export RMATE_HOST=localhost
export RMATE_PORT=52699
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With