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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 22nd August 2007, 02:34
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

I don't want to push you Falko ;-) but when do you guess you're able to publish a howto? I'm kind of lost without that ;-/

Thank you very much


Leander
Reply With Quote
Sponsored Links
  #12  
Old 22nd August 2007, 12:51
lauer lauer is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default I got it to work

Hello
I have just followed the guide on a Debian Etch AMD64, and the only problem I had, was that an error about /bin/bash not could be found.
A quick search on google gave me the result, that a lib-file was missing.
`ldd /bin/bash`
shows whats files the program need. And the guide didn't say anything about
/lib64/ld-linux-x86-64.so.2
After adding this to the chroot, Its work without problems.
Reply With Quote
  #13  
Old 22nd August 2007, 15:13
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

Hi,

Thanks for your response. Can you tell me where you found this tutorial, or do you have a link?


Leander
Reply With Quote
  #14  
Old 22nd August 2007, 16:21
lauer lauer is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use the same tutorial as you.

I only have som problems with sftp, where the connection are closed after password supplied. But ssh til the chroot works fine.
Reply With Quote
  #15  
Old 23rd August 2007, 21:31
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default Ok - I did it ...

Hi again ...

ok ... , I did it .. and it seems to work ... the users are jailed ... BUT .. if I type as root
Code:
ssh -l user 10.1.10.1
the following error appears:

Code:
/etc/ssh/ssh_config line 45: Unsupported option "GSSAPIAuthentication"
/etc/ssh/ssh_config line 46: Unsupported option "GSSAPIDelegateCredentials"
but the connection goes on ... it seems as I could ignore it ... but why shows that up?? should I hav compiled those options with the ssh chroot patch before?? Or should I easily just comment those Lines out ;-) ?


Leander
Reply With Quote
  #16  
Old 24th August 2007, 17:59
8c2gon 8c2gon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default sftp

Thanks for all of the tips on this folks - I have also just managed to get to the stage that LeoLinux is at.

I can't figure out how to get sFTP working tho - know it's not a "real" protocol, I have tried copying over a few things but an getting the message..

sftp testuser@127.0.0.1
Request for subsystem 'sftp' failed on channel 0
Couldn't read packet: Connection reset by peer.

Can anyone tell me what I need to do?

Thanks in advance..
Reply With Quote
  #17  
Old 24th August 2007, 23:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Originally Posted by 8c2gon
Thanks for all of the tips on this folks - I have also just managed to get to the stage that LeoLinux is at.

I can't figure out how to get sFTP working tho - know it's not a "real" protocol, I have tried copying over a few things but an getting the message..

sftp testuser@127.0.0.1
Request for subsystem 'sftp' failed on channel 0
Couldn't read packet: Connection reset by peer.

Can anyone tell me what I need to do?

Thanks in advance..
Any errors in your logs?
__________________
Falko
--
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
  #18  
Old 27th August 2007, 11:14
8c2gon 8c2gon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Logs

Thanks for reply Falko,

I don't seem to have a log file for SSH - I don't have a file \var\log\secure - should this have been setup automatically or is it something that I should have done? I'm a noob at this stuff, please excuse my ignorance.

I can log in fine with a user that is not jailed, so at a guess I need to add somehting else to the chroot environment, just not too sure.
Reply With Quote
  #19  
Old 28th August 2007, 19:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Take a look at /var/log/auth.log.
__________________
Falko
--
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
The Following User Says Thank You to falko For This Useful Post:
8c2gon (28th August 2007)
  #20  
Old 28th August 2007, 22:10
8c2gon 8c2gon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default Got it

Thanks Falko again for the response. The auth log wasn't showing me anything, it was showing all the authentications as accepted. I actually managed to find this out today, If anyone is interested this is what I had to do.

Replace this line in the sshd_config file:

Subsystem sftp /usr/lib/openssh/sftp-server

With this line:

Subsystem sftp /usr/lib/sftp-server

that got rid of the subsystem error. And I got connected okay.

Thanks to one and all!

8c2
Reply With Quote
Reply

Bookmarks

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
Debian Etch (Debian 4.0) apache2 file needed Dekalb Installation/Configuration 3 2nd June 2007 00:40
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 01:57
Moving ISPConfig from Suse 10.1 to Debian Etch grasomega Installation/Configuration 3 27th April 2007 13:42
Pls Help - Problem installing OpenVZ with Debian Etch. joelee HOWTO-Related Questions 3 14th January 2007 19:37
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42


All times are GMT +2. The time now is 10:43.


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