Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th January 2006, 11:14
zokahn zokahn is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Smile ssh chroot works, but no scp for chroot users

Hi all,

(I was in error scp works, sftp does not. scp only worked for winscp after i changed the permissions for: /usr/bin/groups to -rwxr-xr-x 1 root root 19 Jan 27 09:26 groups)

I´ve build my very own ssh chroot setup! Thanks Falko. However i was planning on using it to let users upload there data to my server. This is way is way more secure than the clear txt passwd ftp thingy

However, after building the ssh chroot folowing the howto: Normal users scp fine, chroot users get the error: Server refused to start a shell/command. (Using winscp, scp from other debian systems is ok: after i copied the scp bin to the chroot env)

Regards,

Zokahn

Last edited by zokahn; 27th January 2006 at 11:42.
Reply With Quote
Sponsored Links
  #2  
Old 27th January 2006, 19:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by zokahn
(I was in error scp works, sftp does not. scp only worked for winscp after i changed the permissions for: /usr/bin/groups to -rwxr-xr-x 1 root root 19 Jan 27 09:26 groups)
I guess this means it's working now?
__________________
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
  #3  
Old 29th January 2006, 01:19
zokahn zokahn is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nope sftp does not work,

But hmm,.. Yes can get files over using WinSCP using a secure protocol. Maybe you know a way to get sftp working for chrooted users. It seems that the ´protocol´ can work but i need to copy the right files in the chroot. I´m talking sftp specific not scp.

I´ll keep on searching... but maybe you know.

Regards,

Zokahn
Reply With Quote
  #4  
Old 29th January 2006, 22:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

I would have to check that on a test server (which I don't have available right now...).
But why do you want sftp instead of scp?
__________________
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
  #5  
Old 30th January 2006, 00:00
zokahn zokahn is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don´t know seems to be a default option in WinSCP. I did not toke the time to see what the difference is. I guess if this is ok it´s ok so don´t bother setting up a testserver.

I must say that this is really something :-) I´m verry happy with the howto´s

Thanks,

Zokahn
Reply With Quote
  #6  
Old 30th January 2006, 10:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
 
Default

It's ok to use SCP. But can you post /etc/ssh/sshd_config (or something like that)? Maybe there's an option in it that allows you to use sftp.
__________________
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
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
SSH Users CHROOT howser Installation/Configuration 20 2nd August 2006 09:22
System users, or virtual users gfts Installation/Configuration 1 20th December 2005 11:28
Ability to add components for users webstergd Feature Requests 1 20th December 2005 11:25
Real System users exy123 General 2 12th December 2005 11:01
Chroot FTP users olli Server Operation 3 25th April 2005 12:35


All times are GMT +2. The time now is 05:02.


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