[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Aiuto con chroot di OpenSSH



Ciao a tutti,
ho un problema nel chrootare gli utenti sulla mia lenny.

Ho seguito alla lettera questa guida http://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny fino al punto 3.
C'è qualcosa di sbagliato?
Ho provato anche a cambiare il parametro di chroot a "/home/%u" ma niente...
Tuttavia quando provo a connettermi ecco il responso:

fabio@fabio-lnx:~$ ssh testuser@192.168.0.21
testuser@192.168.0.21's password:
/bin/bash: No such file or directory
Connection to 192.168.0.21 closed.
fabio@fabio-lnx:~$

verboso:
testuser@192.168.0.21's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = it_IT.UTF-8
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
/bin/bash: No such file or directory
debug1: channel 0: free: client-session, nchannels 1
Connection to 192.168.0.21 closed.
Transferred: sent 1696, received 2040 bytes, in 0.0 seconds
Bytes per second: sent 446802.3, received 537427.3
debug1: Exit status 1
fabio@fabio-lnx:~$


Se cambio l'sftp con "internal-sftp" rimane in stallo dopo la password.
L'utente ed il gruppo esistono e sono associati.

grazie in anticipo
f

--
<Fabio Mora>
Cel.: 340-1504097 - eMail: fabio.mm@gmail.com
-
Libera il pianeta! Usa Linux!
http://www.gallug.it - http://www.ubuntu-it.org/

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: