From my windows machine I would like to scp (I have git bash installed) 2 files to a directory on a redhat box.
In the directory where the 2 files are I do in my terminal
user@workstation$ scp file1.jar user@remote:/home/user/dir/ FAILS: permission denied
user@workstation$ scp file2.jar user@remote:/home/user/dir/ WORKS
Surprisingly, both files (locally) have the same permissions (ls -al)
-rw-r--r-- 1 user admin 58706904 Jun 4 16:02 file1.jar
-rw-r--r-- 1 user admin 45033480 Jun 4 16:02 file2.jar
On the remote server I gave the target directory dir full permissions to everyone (chmod 777)
drwxrwxrwx 3 user root 4096 Jun 4 16:16 .
Neither on the windows nor on the redhat machine I have admin access.
Thanks for the help
scpwith-v(verbose) option.