Last active
June 23, 2026 18:31
-
-
Save egorvinogradov/87ee7b11f379c75a59ebfbe1f9f9c950 to your computer and use it in GitHub Desktop.
m5 pull m2 clipboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| KEY="$HOME/.ssh/m5-clipboard" | |
| mkdir -p "$HOME/.ssh" | |
| chmod 700 "$HOME/.ssh" | |
| cat >"$KEY" <<'EOF' | |
| -----BEGIN OPENSSH PRIVATE KEY----- | |
| b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW | |
| QyNTUxOQAAACAAF/GCW+wat93NklG0cvsXIF4ObAxnnIoMkvtRhj7WdwAAAJBo5yKTaOci | |
| kwAAAAtzc2gtZWQyNTUxOQAAACAAF/GCW+wat93NklG0cvsXIF4ObAxnnIoMkvtRhj7Wdw | |
| AAAEBxH9Aje8JuzpJY+51HjPgod65db47bhqRLPTVsu6ibfgAX8YJb7Bq33c2SUbRy+xcg | |
| Xg5sDGecigyS+1GGPtZ3AAAADG01LWNsaXBib2FyZAE= | |
| -----END OPENSSH PRIVATE KEY----- | |
| EOF | |
| chmod 600 "$KEY" | |
| ssh -i "$KEY" -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new -o ConnectTimeout=10 \ | |
| user@192.168.12.210 \ | |
| 'cat /Users/egor/Library/CloudStorage/Dropbox/_tasks/rx2go/2026-06-23-new-macbook/clipboard/clipboard.txt' \ | |
| | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment