-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsub with multiple computers in the same server #60
Comments
I found a work around, which is described here. I'm wondering why this package does not enable to set user specific settings. Anyway, I truly love rsub. Thank you! |
The workaround you linked doesn't seem to be working for me. Any suggestions? |
@lgsds can you explain further? What are you experiencing? The same file is opening in two computers? |
Make sure in this file |
When I follow the post I get the following errors: ~/bin/rsub: connect: Connection refused But when I set it up using the default port, 52698, it works just fine. |
Do you have sublime opened when you try to connect? Perhaps, could you share your settings? S
|
I do. I set it up using the same settings as the SO post:
|
Hey @lgsds, I went through this process again for one of my colleagues computer and I was having the same issue as you... Surprisingly, my problem was that I had an extra white space at the end of the name of the rsub settings file, it was called Once I fixed that, everything worked as expected. I didn't do anything different from what is described in StackOverflow. |
If you copy pasted the name from the SO post, you are likely to have the same problem because that name had an extra white space (which I just corrected). |
In our case there was two local machines which wanted to connect on the same server and the same user. We solved it by simply duplicate the rmate-script on the remote machine, rename it and change the port-number in the script itself. All other changes locally was also necessary liked mentioned in this thread. Worked like a charm, but a support for multiple users for the same command would be nice. |
If you connect over ssh you may export
and also put into
How to pass the ENV variable you can see here
For each connection the environment will have different hope this helps to you |
I see how to customize the port, but I fail to understand how to have 1 local Sublime instance able to edit files on multiple remote servers at once. Every time I open an SSH connection to 2nd, 3rd, etc. remote hosts, the previous hosts cannot connect to Sublime. One local Sublime port won't accept connection from multiple remote hosts. Is this possible at all? Can I get sublime to open, say, 10 ports, 1 for each of 10 remote hosts? |
You are wrong here. The sublime when listening port 52698 (actually rmate plugin) it acts like server. and can accept unlimited count of connections from different remote hosts. In same way as for example your DB server.
yes that is possible. I have described here how |
I'm trying to use rsub with multiple computers on the same server, however, it only works for one. When I try to use it from other computers, files are opened in the first computer. I tried following the instructions in the Port Forwarding section of this blog. But couldn't solve it. Any suggestions?
The text was updated successfully, but these errors were encountered: