openssh sftp fails to start a session - oops

Phillip Wu Phillip.Wu at
Wed Jun 2 16:37:19 EST 2010

Sorry about the original query - it was as Tim says the /home/myuser directory was secured incorrectly and had permissions:

As soon as I changed the permissions all was OK.

Thanks to Tim.................

-----Original Message-----
From: at [ at] On Behalf Of Tim Rice
Sent: Wednesday, 2 June 2010 2:57 PM
To: openssh-unix-dev at
Subject: Re: openssh sftp fails to start a session

On Wed, 2 Jun 2010, Phillip Wu wrote:

> Hi,
> I am having trouble running sftp from the openssh package openssh-5.5p1. There seems to
> be an authentication problem.
> This is what happens:
> $ sftp -o "Port 2022" testu at localhost
> testu at localhost's password:
> Connection closed
> Can someone spot the problem please? How do I fix this?
> subsystem request for sftp
> debug1: subsystem: cannot stat /home/myuser/openssh/libexec/sftp-server: Permission denied

looks like a permissions problem.
Show us the output of
ls -ld / /home /home/myuser /home/myuser/openssh /home/myuser/openssh/libexec
ls -ld /home/myuser/openssh/libexec/sftp-server

Tim Rice				Multitalents	(707) 887-1469
tim at

openssh-unix-dev mailing list
openssh-unix-dev at

This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of the Land and Property Management Authority. This email message has been swept by MIMEsweeper for the presence of computer viruses.
Please consider the environment before printing this email.

More information about the openssh-unix-dev mailing list