![]() ![]() I am using Tmux version 3.0, iTerm2 version 3.3 and macOS Catalina. This only works when copying within emacs, but could be setup to work from a remote tmux session as well. So now when I mark a region in emacs and hit Ctrl + u it copies the region to my macOS client's clipboard, as well as to my emacs kill-ring(clipboard) (global-set-key (kbd "C-u") 'write-region-to-client-clipboard) (shell-command-on-region beg end "ssh -p 1234 pbcopy" nil nil nil t)) emacs file I add: (defun write-region-to-client-clipboard (beg end) ![]() This makes the solution work without having to enter you mac password everytime you copy. Ssh -R 1234:localhost:22 1234 is a available port on your server.īe sure to copy your ssh key from the remote server to your macOS user, on ubuntu that can easily be done by running ssh-copy-id after logging inn with the above command. I connect to the remote server using this command: On your mac you need to enable Settings->Sharing->Remote Login. ![]() I have just implemented a solution using reverse ssh tunneling. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |