I have a situation in production where SFTP (using Putty PSFTP) is working when I connect and list files on a remote server but put and get fail with error permission denied.
In my dev environment I can use psftp and filezilla with the same username/password to the same remote server and get/put files as expected.
This leads me to think that somehow the network/firewall is blocking my get/put commands in some way but so far I cannot figure out what is going on.
Turns out this was because of a McAfee firewall that had an SSH proxy. Explains everything.