How to scp self?
I want to scp from myself to myself, but am getting `Permission denied (publickey)` errors. This is more of a edge case of a script, but I feel like there shouldn't be an issue with it.
ifconfig | grep inet
# 192.168.11.151
scp -p myport me@192.168.11.151:/opt/some-files .
# My public key exists and is valid enough to reach out to GitHub
cd ~/.ssh
less id_rsa
less id_rsa.pub
less authorized_keys
The most common issue is to forget to properly set permissions: