Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you exclusively work on remote servers? I love tmux, but I have the issue that I also use it locally, and to my knowledge, you can't have local and remote sessions in one tmux daemon. So I either have to open tmux in tmux, or open it in a separate terminal window.

You mentioned your editor on the remote server. Does everyone have their own account with their own settings on all remote servers? We're still at a point where everyone accesses servers via the one shared "root-ish" user.



Everyone has their own account with their own home folder containing their dotfiles. There are shared project and scratch drives. I do all my work on this server, nothing is done locally other than ssh into the server.

For what you are describing the best practice is a nested tmux session with tmux running locally and on the remote server. So you would open tmux locally, then in one of the windows or panes you ssh into your machine, then open tmux on that machine. This will require you to press the tmux prefix (ctrl+b or however you've set it) twice to do the commands on the remote tmux instance. However you can get around this with some configuration (1).

1. https://www.freecodecamp.org/news/tmux-in-practice-local-and...

I think certain certain terminal emulaters like iterm2 have tmux specific features that could also be helpful, but I don't use that software so I am not as familiar.


(Random tmux user commenting here...)

I always run tmux locally. If you want to connect from a different computer, just ssh in and then "tmux attach".


My workflow is SSH in and run tmux on the remote server. I don't do any work directly on my laptop.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: