Old 15th November 2007, 02:06
city city is offline
Junior Member
Join Date: Oct 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chrooted SSH/SFTP On Fedora 7


I've completed my installation of the Chroot setup but when I try to connect from
my remote client. I can get a login, I put in my password and hit enter, then it suddenly closes my connection. Can someone please help?

Reply With Quote
Sponsored Links
Old 15th November 2007, 03:00
o.meyer o.meyer is offline
Senior Member
Join Date: Aug 2007
Posts: 167
Thanks: 2
Thanked 24 Times in 23 Posts


have you copied the line for your username from /etc/passwd to /home/chroot/etc/passwd ?


grep /etc/passwd -e "^testuser" >> /home/chroot/etc/passwd

Reply With Quote
Old 15th November 2007, 18:36
city city is offline
Junior Member
Join Date: Oct 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

hi o.meyer,

Yes, I've tried using that - even creating the testuser account verbatim like the example. I've tried going back and recompile the openssh-4.5p1-chroot and I noticed that after the make or was it the configure command that it complained about the ssh may not work if there is no PAM config file for. I'll try to get the exact error and post it here again.

Reply With Quote
Old 15th November 2007, 20:21
city city is offline
Junior Member
Join Date: Oct 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

I got this message during the compile of openssh chroot. Could this be the issue, the last few lines of the message?

Here is the output after I ran the following command from the How-To:

./configure --exec-prefix=/usr --sysconfdir=/etc/ssh --with-pam

OpenSSH has been configured with the following options:
User binaries: /usr/bin
System binaries: /usr/sbin
Configuration files: /etc/ssh
Askpass program: /usr/libexec/ssh-askpass
Manual pages: /usr/local/share/man/manX
PID file: /var/run
Privilege separation chroot path: /var/empty
sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin
Manpage format: doc
PAM support: yes
OSF SIA support: no
KerberosV support: no
SELinux support: no
Smartcard support: no
S/KEY support: no
TCP Wrappers support: no
MD5 password support: no
libedit support: no
Solaris process contract support: no
IP address in $DISPLAY hack: no
Translate v4 in v6 hack: yes
BSD Auth support: no
Random number source: OpenSSL internal ONLY

Host: i686-pc-linux-gnu
Compiler: gcc
Compiler flags: -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -std=gnu99
Preprocessor flags:
Linker flags:
Libraries: -lpam -ldl -lresolv -lcrypto -lutil -lz -lnsl -lcrypt

PAM is enabled. You may need to install a PAM control file
for sshd, otherwise password authentication may fail.
Example PAM control files can be found in the contrib/

Reply With Quote
Old 16th November 2007, 18:34
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

What's the output of
ls -l /etc/pam.d
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Setup - Fedora Core 4 british.assassin Server Operation 9 21st February 2008 18:29
Virtual Users And Domains With Postfix, Courier And MySQL can't login wildgoosed HOWTO-Related Questions 18 11th July 2007 22:34
How can you correct an incompatible kernel on a Fedora installation CD? gnagent Kernel Questions 2 17th March 2007 21:47
Fedora Core 5.0 and SimplyMepis gtoman Installation/Configuration 2 10th July 2006 21:12
Chrooted SSH HowTo for Fedora Core 4? ctroyp HOWTO-Related Questions 3 26th May 2006 03:00

All times are GMT +2. The time now is 09:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.