Skip to content

Paste to file over ssh

Shell
3 mo. ago

Quickly paste clipboard content into a remote file over ssh using pbpaste and cat.

cat
pbpaste
ssh
paste-to-file-over-ssh.sh
# Content must be on your clipboard before executing
pbpaste | ssh USERNAME@IP_ADDRESS 'cat > /path/to/file/docker-compose.yml'