scp -i ~/.ssh/my_id_rsa -P 30000 some_file.gz email@example.com:/home/sshuser/
And it returned:
scp:/some_file.gz: Permission denied
The rsa key file is the same file I use to connect via SSH (along with the port # and username and i.p)
Does anything stand out that could be causing the permission issue?
I have iptables running, do I need another entry for scp or does it use ssh protocol? (silly question but just making sure here!)
I'm not getting a 'connection refused' error so not sure if this is the issue.