Clipboard
Use the clipboard commands to exchange small text values with an agent.
Prerequisites
The agent must be online, its SSH service must be enabled, and the operator must be able to authenticate to it. Clipboard support also depends on the target operating system and session environment.
Read the agent clipboard
The content is written to standard output:
tealc clip get AGENT_NAME
Set the agent clipboard
tealc clip set AGENT_NAME "CONTENT"
Connection reuse
When SSH ControlMaster is enabled (see ControlMaster), these commands reuse an existing master connection if available, avoiding the password prompt. If no master connection is open for the agent, a new connection is automatically created, which will also establish the ControlMaster socket for future use.
Limitations
Use this feature for small text content only. Clipboard data may be visible to local processes or users on either machine. For files or large content, use SCP or rsync.