[ale] Can SFTP do this

Scott M. Jones eff at dragoncon.org
Wed Oct 12 10:27:08 EDT 2016


It's easier to set up chroot sftp than chroot ssh (which scp requires).
I've done both recently.  It is possible to script an sftp session.

The situation below would be easier if there were different usernames
for each directory subtree.

-Scott

On 10/12/16 10:11 AM, Jerald Sheets wrote:
> I’ve always found it curious the number of folks that would use sftp over scp.  Is there any intrinsic benefit of one over the other?  The interactivity would annoy the bejeezus out of me.
> 
> —j
> 
> 
>> On Oct 10, 2016, at 9:10 AM, Chuck Payne <terrorpup at gmail.com> wrote:
>>
>> Ok,
>>
>> I have a client that as one account. They want to be able that if they
>> sftp what they want to do, if this account sftp from one of three
>> host, that it connects to the correct to the correct home directory
>> that matches the host,
>>
>> ie..
>>
>> devhost01 sftp to host1 connects to dev/home/directory
>>
>> qahost01 sftp to host1 connects to qa/home/directory
>>
>> prodhost01 sftp to host connects to prod/home/directory
>>
>> host1 is the host running sshd
>>
>> So is there way for sshd to see where the host is coming from and
>> redirect it to the correct directory?



More information about the Ale mailing list