Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 31st October 2007, 21:54
nerbas nerbas is offline
Junior Member
Join Date: Oct 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default [solved] chrooted sshd won't port-forward

Some of my users are allowed to login via ssh. They would like to use (local) port-forwarding because at work they can't access my mailhost at port 143.

I followed the advice howto setup a chrooted sshd and it works fine. As a local non-privileged unix-user (I'm not chrooted) I can use port-forwarding (L143 localhost:143 with putty tunnels) but as a non-privileged ispconfig user (chrooted) I can't use port-forwarding - any ideas how to solve that issue?

As the unix-user I can open a telnet connection to localhost:143 and can see i.e. the imap capabilities of the server etc. but as the ispconfig user telnet won't even fully connect - the window closes quickly without showing me a prompt. Yet it seems that the tunnel is established... I'm confused.

[I'm using openssh-4.5p1-chroot, ISPConfig-2.2.18, Debian etch and am happy to provide more info if needed]

Last edited by nerbas; 1st November 2007 at 00:15.
Reply With Quote
Sponsored Links
Old 31st October 2007, 23:26
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts

I guess that there are some programs or libraries missing in the chroot jail. I dont know which other applications are involved in such a forwarding setup, so I cant give you a more detailed hint.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 1st November 2007, 00:14
nerbas nerbas is offline
Junior Member
Join Date: Oct 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks for your time, Till! You really are the foundstone of this community - thank you for all the hard work you put into this!

Sometimes the solution is so simple (almost Windows-like): uncheck "Shell-access" - wait - check "shell-access" - wait - it works

Previously I checked all the programs in /root/ispconfig/scripts/shell/create_chroot_env.sh but didn't change anything. It just seems, that the script needed to run again to build the chrooted environment again.
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
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 17:33
mail forward problems cruz Server Operation 15 8th September 2007 13:43
Who knows howto forward multiple external ip’s to inside machines ? HermanX Server Operation 4 8th May 2007 16:13
My php scripts don't send e-mail html forms. CombatGod Installation/Configuration 5 8th November 2006 11:16
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 23:40

All times are GMT +2. The time now is 19:54.

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