RE: sftp server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok.  I have followed the setup instructions as such.  Create a chroot env,
such as /home/ftp/ and then create a user with a home directory of
/home/ftp/user and edit the /etc/passwd file as such:  
test:x:501:501::/home/ftp/./home/ftp/test:/bin/sh

This fixed my original problem.  However, the users can still cd back one
directory to /home/ftp.  I want them locked directly into their home
directory.


-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]
On Behalf Of Steve Phillips
Sent: Thursday, November 11, 2004 12:43
To: General Red Hat Linux discussion list
Subject: Re: sftp server


google is your friend.

http://www.google.co.nz/search?hl=en&q=sftp+%22Couldn%27t+read+packet%3A%22+
chroot

You didn't follow the setup instructions.

-- 
Steve.


On Thu, 11 Nov 2004, Jay Berryman wrote:

> Hello everyone.  I am trying to build an sftp server and chroot the users
to
> their home directories.  I have already installed patched versions of
> openssh, openssh-server, and openssh-client.  I then edit the /etc/passwd
> file and modify the user's home directory path as such:
>
>
>
> User:x:500:500::/home/user/./:/bin/bash
>
>
>
> Once I try to sftp into the server I receive the following error message:
>
>
>
> Request for subsystem 'sftp' failed on channel 0
>
> Couldn't read packet: Connection reset by peer
>
>
>
> Any help as to what I am doing wrong would be greatly appreciated.
Thanks.
>
>
>
> Jay Berryman, RHCT
>
>
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux