Skip to content

Instantly share code, notes, and snippets.

View hrkck's full-sized avatar
🏠
Working from home

Hakki Kucuk hrkck

🏠
Working from home
View GitHub Profile
@hrkck
hrkck / sshgpgperm.sh
Created March 14, 2021 12:59 — forked from ChristopherA/sshgpgperm.sh
SCP SSH & GPG and Set Folder Permissions
#on local machine
scp -Cvpr .private/ [email protected]:.ssh/
scp -Cvpr .private/ [email protected]:.gnupg/
scp -Cvpr .private/ [email protected]:.profile.local
ssh [email protected]
#on remote machine
sudo -v
sudo chown -R christophera ~christophera/.gnupg/
sudo chown -R christophera ~christophera/.gnupg/*
sudo chown -R christophera ~christophera/.ssh/*