Problems connecting to chrooted server with scponly shell
I've setup a Debian Lenny server with a chroot environment and some users have
a "scponlyc" shell. There's a Cisco Linksys router to access to internet
forwarding port 22.
The problem is that users have to do several attemps to connect to the server,
after 6 or more attemps to connect sometimes they can login.
I have no idea why they have to try to connect so many times, and why the
connection is closed until they can connect.
sshd_config file have no special options set, and the passwd line for a
scponly user is like:
I repeat: after trying to connect several times they finally login.
I attach sshd with debug level log enabled and sftp command output in verbose
mode. I paste some relevant lines here:
From sshd log:
Jan 27 08:47:40 blau-debian-02 sshd: Accepted password for npuyal from
192.168.1.1 port 39184 ssh2
Jan 27 08:47:40 blau-debian-02 sshd: debug1: SELinux support disabled
Jan 27 08:47:40 blau-debian-02 sshd: debug1: subsystem:
Jan 27 08:47:40 blau-debian-02 sshd: debug1: Received SIGCHLD.
From sftp -vvv:
debug1: Authentication succeeded (password).
debug1: Entering interactive session.
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
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
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
Tel. + 34 977 87 07 02
Tel i Fax. + 34 977 87 05 07
Plaça d'en Canós 9-11, 2on 1a
Espluga de Francolí