[scponly] sftp with scponlyc
roger at rope.net
roger at rope.net
Wed Jul 30 11:24:19 EDT 2003
Well, it looks like I'm getting closer to the answer, but there's
a ways to go, yet. Any pointers would be appreciated. Thanks.
I just tried a couple of tests after bumping the debug level to 2.
The first log lines are from my failed connection using the older version
of sftp:
Jul 30 15:55:26 dev sshd[6168]: Accepted password for matter2 from 10.10.10.50 port 602 ssh2
Jul 30 15:55:26 dev sshd(pam_unix)[6170]: session opened for user matter2 by (uid=563)
Jul 30 15:55:26 dev [6172]: chrooted binary in place, will chroot()
Jul 30 15:55:26 dev [6172]: 3 arguments in total.
Jul 30 15:55:26 dev [6172]: ^Iarg 0 is scponlyc
Jul 30 15:55:26 dev [6172]: ^Iarg 1 is -c
Jul 30 15:55:26 dev [6172]: ^Iarg 2 is sftpserv
Jul 30 15:55:26 dev [6172]: opened log at LOG_AUTHPRIV, opts 0x00000029
Jul 30 15:55:26 dev [6172]: retrieved home directory of "/home/websites/matter2" for user "matter2"
Jul 30 15:55:26 dev [6172]: chrooting to dir: "/home/websites/matter2"
Jul 30 15:55:26 dev [6172]: setting uid to 563
Jul 30 15:55:26 dev [6172]: processing request: "sftpserv"
Jul 30 15:55:26 dev [6172]: denied request: sftpserv [username: matter2(563), IP/port: 10.10.10.50 602 22]
Jul 30 15:55:26 dev sshd(pam_unix)[6170]: session closed for user matter2
Notice "arg2 is sftpserv". Why is that not being set the same as
on a successful connection, using a newer version of sftp?
Here's the second, successful connection:
Jul 30 15:56:12 dev sshd[6176]: Accepted password for matter2 from 206.75.255.60 port 33124 ssh2
Jul 30 15:56:12 dev sshd[6178]: subsystem request for sftp
Jul 30 15:56:12 dev sshd(pam_unix)[6178]: session opened for user matter2 by (uid=563)
Jul 30 15:56:12 dev [6180]: chrooted binary in place, will chroot()
Jul 30 15:56:12 dev [6180]: 3 arguments in total.
Jul 30 15:56:12 dev [6180]: ^Iarg 0 is scponlyc
Jul 30 15:56:12 dev [6180]: ^Iarg 1 is -c
Jul 30 15:56:12 dev [6180]: ^Iarg 2 is /usr/lib/ssh/sftp-server
Jul 30 15:56:12 dev [6180]: opened log at LOG_AUTHPRIV, opts 0x00000029
Jul 30 15:56:12 dev [6180]: retrieved home directory of "/home/websites/matter2" for user "matter2"
Jul 30 15:56:12 dev [6180]: chrooting to dir: "/home/websites/matter2"
Jul 30 15:56:12 dev [6180]: setting uid to 563
Jul 30 15:56:12 dev [6180]: processing request: "/usr/lib/ssh/sftp-server"
Jul 30 15:56:12 dev [6180]: running: /usr/lib/ssh/sftp-server (username: matter2(563), IP/port: 206.75.255.60 33124 22)
Jul 30 16:05:12 dev sshd(pam_unix)[6178]: session closed for user matter2
--
Roger Walker spam free @ http://www.evsmail.com
Voice/Fax 1-780-440-2685 http://www.rat-hole.com
"HIS Pain - OUR Gain" http://www.man-from-linux.com
More information about the scponly
mailing list