[scponly] can not stfp

Kaleb Pederson kibab at icehouse.net
Wed Jan 31 23:07:43 EST 2007


Hi,

Thanks for the useful debugging information.  It sounds like you have done 
everything right and that there is a problem with the sftp-server within the 
chroot.

First, try verifying that the chroot is setup correctly and that the 
sftp-server doesn't have any missing files.  You should be able to use 
`ldconfig -v -r /home/scponly` to verify that all the shared libraries are in 
place.

If that doesn't help, check out the debugging information on the FAQ, 
specifically the piece regarding strace.

Let us know how it goes.

Thanks.

--Kaleb

On Monday 29 January 2007 22:38, Erol KAHRAMAN wrote:
> hi guys,
>
> i  just installed scponly on my FC6 box with jail options. But i can not
> connet to my scponly server. I follow the following steps;
> 1. tar xzvf scponly-*.tar.gz
> 2. ./configure --enable-chrooted-binary --enable-scp-compat
> --enable-sftp-logging-compat
> 3. make
> 4. make jail
> after that i leave all options with default settings. Now, when i trying to
> connet with sftp command i get the following logs; it looks like there is
> not any error. What could be a problem ?
> ...
> Jan 29 15:13:48 scpserver sshd[30719]: Connection closed by 10.11.18.12
> Jan 29 15:13:48 scpserver sshd[30720]: Accepted password for scponly from
> 10.11.18.12 port 39499 ssh2
> Jan 29 15:13:48 scpserver sshd[30720]: pam_unix(sshd:session): session
> opened for user scponly by (uid=0)
> Jan 29 15:13:48 scpserver sshd[30722]: subsystem request for sftp
> Jan 29 15:13:48 scpserver scponly[30723]: chrooted binary in place, will
> chroot()
> Jan 29 15:13:48 scpserver scponly[30723]: 3 arguments in total.
> Jan 29 15:13:48 scpserver scponly[30723]:         arg 0 is scponlyc
> Jan 29 15:13:48 scpserver scponly[30723]:         arg 1 is -c
> Jan 29 15:13:48 scpserver scponly[30723]:         arg 2 is
> /usr/libexec/openssh/sftp -server
> Jan 29 15:13:48 scpserver scponly[30723]: opened log at LOG_AUTHPRIV, opts
> 0x00000029
> Jan 29 15:13:48 scpserver scponly[30723]: retrieved home directory of
> "/home/scponly" for user "scponly"
> Jan 29 15:13:48 scpserver scponly[30723]: chrooting to dir: "/home/scponly"
> Jan 29 15:13:48 scpserver scponly[30723]: chdiring to dir: "/"
> Jan 29 13:13:48 scpserver scponly[30723]: setting uid to 502
> Jan 29 13:13:48 scpserver scponly[30723]: processing request:
> "/usr/libexec/openssh/sftp-server"
> Jan 29 13:13:48 scpserver scponly[30723]: Unable to find "LOG_SFTP" in the
> environment
> Jan 29 13:13:48 scpserver scponly[30723]: Found "USER" and setting it to
> "scponly"
> Jan 29 13:13:48 scpserver scponly[30723]: Unable to find "SFTP_UMASK" in
> the environment
> Jan 29 13:13:48 scpserver scponly[30723]: Unable to find
> "SFTP_PERMIT_CHMOD" in the environment
> Jan 29 13:13:48 scpserver scponly[30723]: Unable to find
> "SFTP_PERMIT_CHOWN" in the environment
> Jan 29 13:13:48 scpserver scponly[30723]: Unable to find "SFTP_LOG_LEVEL"
> in the environment
> Jan 29 13:13:48 scpserver scponly[30723]: Unable to find
> "SFTP_LOG_FACILITY" in the environment
> Jan 29 13:13:48 scpserver scponly[30723]: Environment contains
> "USER=scponly"
> Jan 29 13:13:48 scpserver scponly[30723]: running:
> /usr/libexec/openssh/sftp-server (username: scponly(502), IP/port:
> 10.11.18.12 39499 2244)
> Jan 29 15:13:48 scpserver sshd[30720]: pam_unix(sshd:session): session
> closed for user scponly



More information about the scponly mailing list