Now, i am able to access the server. can you check the same?
C:\Users\shlinga>sftp firstname.lastname@example.org The authenticity of host 'sftp.juniper.net (10.76.3.34)' can't be established. RSA key fingerprint is SHA256:wTKjW6/cAnt5pbGQKjHZhj3WVqZsQtPUp0TR57dvj54. Are you sure you want to continue connecting (yes/no)? Warning: Permanently added 'sftp.juniper.net,10.76.3.34' (RSA) to the list of known hosts. Password authentication Password: Connected to email@example.com. sftp>
Can you check now and see if it works?
You can also view the same contents in the KB with pictures for ease understanding in the below link:
I think once the file is moved to the SFTP server you won't be able to list the directory content.
If your question is wrt why you are getting the permission denied after the copy
sftp> ls -l
Couldn't read directory: Permission denied >> After the SFTP upload is done.
I believe you would not have the permissions to read the files or list the contents based on the policy/configuration defined on the server side once the upload is done.
Once the file upload is complete and it shows up as 100% like below:
ftp> put /var/home/arix/Mx_whole_config.txt
Uploading /var/home/arix/Mx_whole_Conf.txt to /pub/incoming/xxxx-yyyy-zzzz/Mx_whole_Conf.tx
/var/home/arix/Mx_whole_Conf.tx 100% 1688 1.7KB/s 00:00 >> File upload complete , you will not be able to list the files in directory.
I believe you read this as a part of the document:
You can list the directory content only for a short time after the upload completes because the file is
moved on the server to a location where it is not accessible to SFTP users.
Here is the same listing two minutes later:
sftp> ls -l
If this helped, request you to flag this as "Accept as solution". Kudos are appreciated too!