Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: phranque

Message Too Old, No Replies

SFTP Permissions for write/overwrite only

     
3:14 pm on Jan 20, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
posts:2162
votes: 0


I'm automating data transfers from a windows site to a LAMP site using an SFTP scripting client on Windows Server 2003 and the bin/ssh folder on Plesk.

Can I lock this down so that the Windows server can only issue put & put with overwrite. Can it belimited even more to just csv files. How?

Thanks.
7:59 pm on Jan 20, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 17, 2002
posts:1181
votes: 5


Create a user on the linux box
Create a directory on the linux box which only the user can Write to
Use a cronjob to routinely process the uploaded files / clean out the directory.
10:56 am on Jan 21, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
posts:2162
votes: 0


Thanks

Is there any way to limit the type of files that can be written in Plesk or Linux or does this need to use a web/firewall type filter?

Will write permissions prevent the account changing directories, reading files, creating directorys, deleting stuff ?

Im fine with the transfers and processsing I just want to ensure if the Windows box is hacked theres no way to damage the LAMP box.

I'm using an SFTP script, durring connection Windows is being sent a fingerprint but is saying the host key is unknown - is this normal ?