[PLUG] ftp and ssh

Derek Loree derek at infotects.com
Mon Oct 14 23:58:36 UTC 2002


On Mon, 2002-10-14 at 15:45, plug at thedrew.net wrote:
> Hey all, I'm hoping someone has had better luck with this than I have. I
> installed Redhat 8.0, then downloaded and installed the Pure-FTPd rpm. I
> set this up as per the readme and had everything working satisfactorily,
> other than the fact that it was plain ftp. (NOTE: I have been unable to
> access the pure-ftpd site today, www.pureftpd.org, but google has the
> site cached) SO, I tried to setup FTP with SSH. I followed the steps in
> the faq, with a few differences. I've copied the pertinent faq section
> below. I attempted to create a user of type 2, (encrypted access only)
> but had to slightly modify the commands he used.
> 
> He used:
> 	useradd -u ftpuser -g ftpgroup -d /dev/null -s /usr/bin/false
> customer2
> 
> I used
> 	useradd -u 600 -g 501 -d /dev/null -s /bin/false drewftp
> He used:
> 	pure-pw useradd customer2 -m -d /home/customer2 -u ftpuser -r
> 127.0.0.1/32
> I used:
> 	pure-pw useradd drewftp -m -d /home/customer2 -u 600 -g 501 -r
> 127.0.0.1/32

One problem may be that the home directory is customer2, but the user is
drewftp, I think SSH needs the home directory to match the user name.

Derek





More information about the PLUG mailing list