Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 May 2007 18:02:19 +0300
From:      Ghirai <ghirai@ghirai.com>
To:        Ewald Jenisch <a@jenisch.at>, freebsd-questions@freebsd.org
Subject:   Re: scp/sftp without interactive shell?
Message-ID:  <238128338.20070503180219@ghirai.com>
In-Reply-To: <20070503140733.GA3332@aurora.oekb.co.at>
References:  <20070503140733.GA3332@aurora.oekb.co.at>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Ewald,

Thursday, May 3, 2007, 5:07:33 PM, you wrote:

> Hi,

> I'm looking for a way to securely transfer files between machines
> using either scp or sftp without giving the user a login shell on the
> target machine. Put in another way: The user should be able to
> transfer files but must not have an interactive login shell on the
> target box.

> Giving the user a shell of "/bin/true" or something similar on the
> target machine is not an option since scp doesn't seem to work in this
> case.

> Any ideas how this could be accomplished?

> Thanks in advance for your help,
> -ewald

Given your requirement,
i would suggest installing pure-ftpd and puredb (from ports).

With that you can create as many virtual users as you like, and
restrict access/speed/etc to fit your needs.

Your clients will connect over SSL FTP, which i assume is acceptable.

A detailed guide is here: http://www.bsdguides.org/guides/freebsd/networking/pure-ftpd_virtual_users.php

Hope this helps.


-- 
Best regards,
Ghirai.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?238128338.20070503180219>