
I hope we get support for using OSC 52 over mosh in Blink soon. You can do this by highlighting the contents of the file and pressing the Ctrl+C keys, or by. However, if you already use tmux, reconnecting to a server and running tmux -u a -d to attach to your session is a minor inconvenience to get native copy and paste working. The public key files contents should be copied to your clipboard. If you’ve used mosh on an iPad with an app link Blink or Termius, you’ll know that it handles mobile networking situations better than SSH. The maximum number of bytes you can copy is 74,994, which is about 75 kilobytes.
#Ssh copy file contents to clipboard windows#
It will be loaded automatically to the windows clipboard. ago Are you using X or wayland Randalix 3 mo.

On macos it did not work for some reason. ago Yeah, but I think it is a linux thing. However, I am not aware of a way to put an object (like a file (jpg, mp3, ini, etc)) into the clipboard from the command line using native tools. Clipboard over SSH Does it yank to your system clipboard On the side, I use sshfs to edit files on a remote machine with my local setup. The Blink app only supports this sequence over SSH, not mosh. If its a small amount of text, simply use the cursor to highlight the text in the PuTTY window. You dont specify which flavour of Windows, but anything from Vista/2003 onwards should work doing this: echo blah clip. What I want to do is copy the contents of idrsa.pub and append them to authorizedkeys on the remote machine.Make sure you have ForwardX11 yes in your /. There are two limitations you should know about the OSC 52 control sequence. Ssh Copy input to clipboard over SSH If you run ssh with X forwarding, this is transparent: remote commands (including xclip ) have access to your X server (including its keyboard).

#Ssh copy file contents to clipboard code#
I picked up this code directly from the blog post where I first read about OSC 52, where you can find more snippets.

Let escape = system ( 'yank', a:text ) if v :shell_errorĮchoerr escape else call writefile (, '/dev/tty', 'b' ) endif endfunction noremap y : call Yank 0 ) " copy to attached terminal using the yank(1) script: " function ! Yank (text ) abort
