DWService

⌘K
  1. Home
  2. Docs
  3. DWService
  4. Workarounds
  5. πŸ“‹ Paste text to a remote macOS

πŸ“‹ Paste text to a remote macOS


The PasteΒ function is not yet available in the Screen application.

πŸ§‘πŸΌβ€πŸ’» The implementation of this feature is on our to-do list, but until it is not available, the following workaround can be used.

We show you two workarounds:


By using the Shell application

Prerequisite setting:

You must enable the Remote Login feature. ⚠️ Important note: this only needs to be done once.

To do this, open the Shell application:

Type the following command:

sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

Press Enter.

βœ… With this command, Remote Login is enabled on the remote device.

πŸ’‘ If you want to turn off the Remote Login, you can do so with the following command:

sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist

Press Enter.


Sign in as the user

To sign in as the remote user, use the following command:

ssh username@hostname

For username, type the username of the remote macOS.
For hostname, type the name of the device.

Press Enter.

Enter the password of the user.

⚠️ Note: you will not see the typing progress while typing, the password must be typed blindly.

This is our example:

 


Paste the text

In the Shell application, type the command:

Echo "Sample text." | pbcopy

➑️ Paste the text you would paste to the remote device in place of the text between the quotation marks.

Press Enter.

So, the text is copied to the clipboard of the remote device.

Using the Screen application, paste the text in the required location.

  • If you are using a mouse, right-click the mouse and select Paste from the menu that appears.
  • If you are using a keyboard, press the Command + V key combination.

βœ… With these commands you can successfully transfer the text to the remote macOS.


By using the Text Editor application

Start the Text Editor application.

Paste the text you copied to the clipboard into the Text Editor application. Here is an example:

Use the Save button on the toolbar to save the text file to the remote device.

Then start the Screen application.

Open the text file where you have previously saved the text.

Select the text and copy it to the clipboard.

  • If you are using a mouse, right-click the mouse and select CopyΒ from the menu that appears.
  • If you are using a keyboard, press the Command + CΒ key combination.

βœ… This will copy the text to the clipboard of your remote device, and you can paste it wherever you want.