Transfer Text Between Your Local Computer and a VM
The method for copying and pasting content between your local computer and remote VMs will vary, depending on the access protocol you are currently using to connect to the VM:
When you are connected to a VM over RDP, the following options are available:
To copy and paste text from your local computer to the remote VM and vice versa, you can use the Ctrl-C and Ctrl-V keyboard shortcuts (on a PC) or Cmd-C and Cmd-V (on a Mac).
If the application you are using on the VM does not support the above key combinations for copying or pasting, you can use the VM clipboard to copy text from the local computer's clipboard to the VM's clipboard. You can then paste the text into the application using any method supported by the application, such as a context menu.
The VM clipboard enables you to update the remote VM's clipboard with the text from the local computer clipboard so that you can copy from the local computer to the remote VM. It also enables you to retrieve text you copied on the remote VM if you copied it using an application that uses an action other than Ctrl-C for copying.
To copy text from the local computer to the remote VM:
Copy the text from your local computer using any supported method, such as the Ctrl-C keyboard shortcut or a Copy menu option.
-
From the Viewer's Settings menu at the left, click Keyboard > VM Clipboard. The VM Clipboard popup will be displayed:
Paste text into the text popup using either the context menu or the Ctrl-V keyboard shortcut (Cmd-V on a Mac).
-
Click Save. The remote VM's clipboard is now updated with the text you pasted into the text popup.
You can now paste the text into any application on the remote VM using a paste function supported by the application for pasting.
To copy text from the remote VM to the local computer:
-
Copy text on the remote VM, using a method supported by the application you are using. In this case, any supported method will work.
The remote clipboard is now updated.
From the Viewer's Settings menu at the left, click Keyboard > VM Clipboard. The VM Clipboard popup will be displayed, showing the text copied from the VM.
-
Copy the text from the VM Clipboard text popup using Ctrl-C or the context menu.
You can now paste the text anywhere on your local computer using any supported method, such as the Ctrl-V keyboard shortcut or a Paste menu option.
When you are connected to a VM over SSH, the following options are available:
-
To copy text from your local computer to your VM:
Copy from the local computer by using any supported method, such as the Ctrl-C keyboard shortcut (on a PC) or a copy option in a context menu.
Paste to the VM using the Ctrl-V keyboard shortcut (on a PC) or the Cmd-V keyboard shortcut (on a Mac).
-
To copy text from the VM to your local computer:
-
Copy text from the visible text in the SSH view by selecting the text with your mouse.
If the text you want to copy no longer appears in the SSH view, right-click the SSH view to open the history buffer, scroll up the history buffer and select the text there.
Paste to the local computer using any supported method, such as the Ctrl-V keyboard combination (on a PC) or the Cmd-V keyboard combination (on a Mac).
-
When you are connected to a VM via the console interface, copying and pasting is not supported in the usual way. The following options are workarounds that send plain text from your local computer clipboard to the VM:
You can use either option to send even large amounts of text, although it may take some time to send all the text.
Important
When you use either of these features, the text content of your local computer's clipboard is sent to the VM as a series of keystrokes. The effect can be different to pasting in some cases, since:
Each keystroke that is sent enters the application that is currently open at the time of sending. So if you switch applications mid-send, the keystrokes sent after the switch will enter the application you switched to.
A sent keystroke performs any function that may be defined in the application for the specific key.
CloudShare enables you to send plain text from your local computer's clipboard to a VM as a series of keystrokes, using the Ctrl-V keyboard shortcut on a PC or the Cmd-V keyboard shortcut on a Mac.
To use this feature, you manually set CloudShare to override the built-in Ctrl-V or Cmd-V keyboard shortcut behavior for all applications on the VM, as detailed below.
Override is disabled by default.
Turn on the Ctrl-V/Cmd-V override:
-
From the Viewer's Settings menu at the left, click Keyboard > Ctrl-V Function. The Ctrl-V Function popup is displayed:
Activate the Send local computer clipboard text option.
You are now overriding the usage of the Ctrl-V (or Cmd-V) keyboard shortcut for every application running on the VM. Ctrl-V (or Cmd-V) will send plain text from your local computer's clipboard to the VM.
Turn off the Ctrl-V/Cmd-V override:
-
From the Ctrl-V Function popup, activate According to VM's default.
The Ctrl-V (on a PC) or Cmd-V (on a Mac) keyboard shortcut will now perform according to the built-in, default behavior for whichever application is being used when you use the shortcut.
The Send Text button enables you to paste text from your local computer's clipboard into a text buffer and then send that text to the remote VM as a series of keystrokes. It's available when you connect to remote VMs over the console interface.
To send text via text buffer:
-
From the Viewer's Settings menu at the left, click Keyboard > Send Text. The Send Text popup will be displayed:
Paste text into the text popup using either the context menu or a keyboard shortcut.
Click Send. The text you pasted is sent to the VM as a series of keystrokes.
Comments
0 comments
Article is closed for comments.