[scponly] sftp works, but not scp

Kaleb Pederson kaleb.pederson at gmail.com
Mon May 18 11:37:32 EDT 2009


On Saturday 16 May 2009 10:04:17 pm Roger Walker wrote:
> May 15 18:09:40 smtp sshd[11132]: pam_unix(sshd:session): session closed for user fred
> May 15 18:09:50 smtp sshd[11136]: Accepted password for vframe from 192.168.1.50 port 50064 ssh2
> May 15 18:09:50 smtp sshd[11136]: pam_unix(sshd:session): session opened for user fred by (uid=0)
> May 15 18:09:50 smtp scponly[11139]: running: /usr/bin/scp -t hosts (username: fred(631), IP/port: 192.168.1.50 50064 22)
> May 15 18:09:50 smtp scponly[11139]: failed: /usr/bin/scp -t hosts with error No such file or directory(2) (username: fred(631), IP/port: 192.168.1.50 50064 22)
> May 15 18:09:50 smtp sshd[11136]: pam_unix(sshd:session): session closed for user fred

It looks like /usr/bin/scp doesn't exist within the chroot.  I suppose it's possible that it's referring to the hosts file, but that seems less likely.

>         Given the initial problem with sftp (which also stated that it
> couldn't find something - the sftp-server, as I recall), I suspect there
> may be a similar issue. Are there more things to do for chroot-ing on
> CentOS 5.2 that need to be done? Am I missing a configureation paramater?

What you provided seems reasonable, so check the above and report back.

Regards.

--Kaleb



More information about the scponly mailing list