[TriLUG] SCP, Chroot

Rick DeNatale rick.denatale at gmail.com
Tue Jan 17 16:10:10 EST 2006


On 1/17/06, Mark Freeze <mfreeze at gmail.com> wrote:
> A friend of mine emailed me and made this comment:
>
> >i dont know what happens behind the
> >scenes with scp but if it logs you in
> >temporarily before you copy then you
> >could just do a chroot jail for people
> >who tried to use the login to actually
> >log in instead of just using it for scp.
> >The chroot should work for scp also.
>
> Is this correct?  Does SCP log you in temporarily before it copies and then
> logs out?  If so, I guess a chroot jail would work.  If you were to try and
> scp to a directory outside of your home structure it would tell you that it
> didn't exist.
>
> Any opinions?

Well why don't you try it?

You could look at the source to see exactly what it does, but in broad
terms scp uses ssh internally to invoke the (read for this) scp
command on the remote host, so I imaging sshd on the remote will do
what it does for any other ssh request.

http://www.openssh.com/
--
Rick DeNatale

Visit the Project Mercury Wiki Site
http://www.mercuryspacecraft.com/



More information about the TriLUG mailing list