asked on
Copy File using SFTP fails
I have a file that needs to be uploaded from RHEL Server 1 to remote RHEL Server 2.
I have SFTP access. When I try to test copy using a small file on local server" I get a permission denied error show below.
The remote server admin says account has permissions.
1) Do you see anything wrong with the statement below or any other problems?
2) Is there a way to check permission granted to "xyz" account on the folder I am trying to copy to since this is an SFTP prompt and not Shell interface?
$sftp xyz@111.111.111.11
Connected to
sftp> put /oracle/upload/test.txt /ing/upload/xyz
Uploading /oracle/upload/test.txt to /ing/upload/xyz/test.txt
remote open("/ing/upload/xyz/test.txt"): Permission denied
sftp> pwd
Remote working directory: /ing/upload/xyz
ASKER
does this show you the "xyz" account has no write privs to the folder? how can i verify permissions
/oracle/upload
sftp xyz@111.111.111.111
cd /ing/,upload/xyz
put test.txt
What happens?
ASKER
after i add the path like put /.../../test.txt I get permission denied.
you dont think there is a permission issue here?
ASKER
Then did SFTP and put file and I get same error.
It is really strange because when i did "ls -alt" on sftp destination, I do see that "abc" has write permissions on the directory.
ASKER
/ing/upload/xyz/ xyz_upload
ASKER
what is getfacls?
Get filesystem access control list is the command.
Advanced option of ls -ll
ASKER
Are there any alternatives to SSH or would security normally opens it up upon request?
ASKER
SFTP and SCP are part of the openssh.
SFTP put is one option, filename
the destination where you want it has to be achieved using cd to navigate to the remote location.
scp /oracle/upload/test.txt xyz@111.111.111.111:/ing/u
Based on your post, the remote side has your RSA public Key such that no password is needed.
do you have ssh rights to that system?
Do you have permissions on the /ing/upload/xyz path?