View previous topic :: View next topic |
Author |
Message |
RoundsToZero Guru
Joined: 17 Nov 2003 Posts: 478 Location: New York, NY
|
Posted: Fri Feb 25, 2005 1:45 am Post subject: scponly activation problem |
|
|
I have a problem with scponly where any time an scponly'd user connected via sftp, they get kicked off right away. At first, I thought it was because of the juggling around of group ID's (including scponly's) that I'd been doing today, but then I installed scponly on my "virgin" system which has never had scponly on it before. To my surprise, scponly'd users weren't able to connect to it either. It seems to have just stopped working.
The place in the logs where the connection exits is right after the subsystem request:
Code: |
Feb 24 19:59:38 [sshd] debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
Feb 24 19:59:38 [sshd] debug1: Forked child 24688.
Feb 24 19:59:38 [sshd] debug1: inetd sockets after dupping: 3, 3
Feb 24 19:59:39 [sshd] Connection from 24.147.68.89 port 2018
Feb 24 19:59:39 [sshd] debug1: Client protocol version 2.0; client software version PuTTY-Release-0.56
Feb 24 19:59:39 [sshd] debug1: no match: PuTTY-Release-0.56
Feb 24 19:59:39 [sshd] debug1: Enabling compatibility mode for protocol 2.0
Feb 24 19:59:39 [sshd] debug1: Local version string SSH-2.0-OpenSSH_3.9p1
Feb 24 19:59:41 [sshd] debug1: temporarily_use_uid: 1003/441 (e=0/0)
Feb 24 19:59:41 [sshd] debug1: trying public key file /home/mishkin/.ssh/authorized_keys
Feb 24 19:59:41 [sshd] debug1: matching key found: file /home/mishkin/.ssh/authorized_keys, line 1
Feb 24 19:59:41 [sshd] Found matching RSA key: 05:51:89:5d:e9:b5:ae:34:7b:85:b2:48:f8:5e:ea:fe
Feb 24 19:59:41 [sshd] debug1: restore_uid: 0/0
Feb 24 19:59:41 [sshd] debug1: temporarily_use_uid: 1003/441 (e=0/0)
Feb 24 19:59:41 [sshd] debug1: trying public key file /home/mishkin/.ssh/authorized_keys
Feb 24 19:59:41 [sshd] debug1: matching key found: file /home/mishkin/.ssh/authorized_keys, line 1
Feb 24 19:59:41 [sshd] Found matching RSA key: 05:51:89:5d:e9:b5:ae:34:7b:85:b2:48:f8:5e:ea:fe
Feb 24 19:59:41 [sshd] debug1: restore_uid: 0/0
Feb 24 19:59:41 [sshd] debug1: ssh_rsa_verify: signature correct
Feb 24 19:59:41 [sshd] Accepted publickey for mishkin from 24.147.68.89 port 2018 ssh2
Feb 24 19:59:41 [sshd] debug1: monitor_child_preauth: mishkin has been authenticated by privileged process
Feb 24 19:59:41 [sshd] debug1: permanently_set_uid: 1003/441
Feb 24 19:59:41 [sshd] debug1: Entering interactive session for SSH2.
Feb 24 19:59:41 [sshd] debug1: server_init_dispatch_20
Feb 24 19:59:41 [sshd] debug1: server_input_channel_open: ctype session rchan 256 win 16384 max 16384
Feb 24 19:59:41 [sshd] debug1: input_session_request
Feb 24 19:59:41 [sshd] debug1: channel 0: new [server-session]
Feb 24 19:59:41 [sshd] debug1: session_new: init
Feb 24 19:59:41 [sshd] debug1: session_new: session 0
Feb 24 19:59:41 [sshd] debug1: session_open: channel 0
Feb 24 19:59:41 [sshd] debug1: session_open: session 0: link with channel 0
Feb 24 19:59:41 [sshd] debug1: server_input_channel_open: confirm session
Feb 24 19:59:41 [sshd] debug1: server_input_channel_req: channel 0 request subsystem reply 1
Feb 24 19:59:41 [sshd] debug1: session_by_channel: session 0 channel 0
Feb 24 19:59:41 [sshd] debug1: session_input_channel_req: session 0 req subsystem
Feb 24 19:59:41 [sshd] subsystem request for sftp
Feb 24 19:59:41 [sshd] debug1: subsystem: exec() /usr/lib/misc/sftp-server
Feb 24 19:59:41 [sshd] debug1: Received SIGCHLD.
Feb 24 19:59:41 [sshd] debug1: session_by_pid: pid 24699
Feb 24 19:59:41 [sshd] debug1: session_exit_message: session 0 channel 0 pid 24699
Feb 24 19:59:41 [sshd] debug1: session_exit_message: release channel 0
Feb 24 19:59:41 [sshd] debug1: session_close: session 0 pid 24699
Feb 24 19:59:41 [sshd] debug1: channel 0: free: server-session, nchannels 1
Feb 24 19:59:41 [sshd] Connection closed by 24.147.68.89
Feb 24 19:59:41 [sshd] debug1: do_cleanup
Feb 24 19:59:41 [sshd] Closing connection to 24.147.68.89
|
Has anyone else had a problem like this? What uid/gid/shell/permissions settings did you have to tweak to make it work? |
|
Back to top |
|
|
Caffeine Guru
Joined: 17 Jul 2002 Posts: 401 Location: Melbourne, Australia
|
Posted: Thu Apr 21, 2005 11:42 am Post subject: |
|
|
Hi. I'm having this same problem, but only for sftp - scp works fine. The following is using ssh keys for authentication.
Quote: | sftp -v -v scponly@myhost.com
(Snip...)
ebug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug2: channel 0: rcvd close
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
debug1: compress outgoing: raw data 1172, compressed 640, factor 0.55
debug1: compress incoming: raw data 591, compressed 581, factor 0.98
Connection closed
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|