HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   ssh chroot works, but no scp for chroot users (http://www.howtoforge.com/forums/showthread.php?t=2266)

zokahn 27th January 2006 10:14

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

falko 27th January 2006 18:37

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?

zokahn 29th January 2006 00:19

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

falko 29th January 2006 21:36

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?

zokahn 29th January 2006 23:00

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

falko 30th January 2006 09:33

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.


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

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