1753893 Members
7517 Online
108809 Solutions
New Discussion юеВ

Sftp issue

 
sheevm
Regular Advisor

Sftp issue

We are currently running HP-UX 11.23.

One of our remote users is connecting via sftp using public key authentication. The remote user comes in to his local directory, server accepts him. Afterwards he is trying to change the directory to pull a file. He is getting denied.

The permission on the directory he is changing it to is:

rwxrwxr-x 775 user:group (sftp user does not own this or does not belong to the group)

Apprciate your insight.

be good and do good
3 REPLIES 3
Steven Schweda
Honored Contributor

Re: Sftp issue

Any chance of seeing a session transcript
showing the actual commands and error
messages?

What happens if that user is logged into the
server system directly instead of through
SFTP? (That is, does SFTP have anything to
do with the problem or not?)
Steven E. Protter
Exalted Contributor

Re: Sftp issue

Shalom,

sftp with the -vvv option and post the diagnostics please.

You will probably see the problem and be able to correct it without reporting back. Also as noted try monitoring the server log.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Deepak Kr
Respected Contributor

Re: Sftp issue

Please attach output of following:

$sftp -vvv "username@serverhostname"

Also make sure user id has access to the absolute path of the directory to be accessed.

If not try using setacl for this.

"There is always some scope for improvement"