deploy: 📦 More Tweaks

This commit is contained in:
2026-01-26 19:12:14 +00:00
parent 3ae6bccead
commit b2e8906975
+13 -4
View File
@@ -1,8 +1,17 @@
# tbc
# work in progress!
#!/bin/bash
REMOTE="devin@192.168.0.49"
rsync devin@192.168.0.49:~/.ssh/id_rsa devin@192.168.0.49:~/.ssh/id_rsa.pub devin@192.168.0.49:~/.ssh/config devin@192.168.0.49:~/.private.gpg ~/.ssh/
echo "📥 Pulling SSH keys..."
rsync "$REMOTE:~/.ssh/id_rsa" ~/.ssh/ && chmod 600 ~/.ssh/id_rsa
rsync "$REMOTE:~/.ssh/id_rsa.pub" ~/.ssh/ && chmod 644 ~/.ssh/id_rsa.pub
rsync "$REMOTE:~/.ssh/config" ~/.ssh/ && chmod 644 ~/.ssh/config
gpg --import ~/.ssh/private.gpg
echo "📥 Pulling GPG key..."
rsync "$REMOTE:~/my-gpg-key.asc" ~/
echo "🔑 Importing GPG key..."
gpg --import ~/my-gpg-key.asc
rm ~/my-gpg-key.asc # Clean up after import
echo "✅ SSH and GPG setup complete!"