help setting up SFTP SERVER in Filezilla - need step by step or a tutorial

Running Windows 2003 Server
Running Filezilla FTP server

Want to get away from FTP and switch to SFTP using filezilla server.

I need a step by step tutorial to set up filezilla with SFTP on my server.

Thanks in advance.

LVL 1
vanaudenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vanaudenAuthor Commented:
figured it out. thanks anyway
vanaudenAuthor Commented:
Ok, figured the whole thing out: Had to unistall/re-install OpenSSH

Here is how to do the entire thing:  (Window 2003)

Note: I am taking some stuff from http://www.digitalmediaminute.com/article/1487/setting-up-a-sftp-server-on-windows, but not all. I like this tutorial, but it is very incomplete in terms of instructions relating to Windows permissions.

1.     Download OpenSSH for Windows here à http://sshwindows.sourceforge.net/download/

2.     Run the installer and be sure to install both the client and server components.

3.     Create a new windows user and group that will be used for SFTP only.

4.     Now make sure that this new user is a member of the group you just created.

5.     Create your SFTP folder/directory and name it with the exact same name as your new user.

     a.     Do NOT create this folder directly under a hard drive letter because Windows permissions will give the SFTP user access to other drives, and YOU DO NOT WANT THAT!
     b.     I suggest you create a folder for SFTP, then create a SUBFOLDER with the new user’s name. That way, you restrict the user’s group permissions on the subfolder. To be even safer, you then completely deny permissions for this user on the main SFTP folder. More on this later on.

6.     Using WINDOWS Explorer, go to this directory: C:\Program Files\OpenSSH\etc

     a.     Make sure that the file “group” exists. If not, create it with NO extention. (it should be empty)
     b.     Make sure that the file “passwd” exists. If not, create it with NO extention. (it should be empty)

7.     Open the Windows Command Prompt and go to this directory à C:\Program Files\OpenSSH\bin

8.     SIDE NOTE: Local group or user is one that allows permissions for a user logged into the local machine only. (As opposed to being logged in from a domain). By default, users and groups are LOCAL.

9.     If the group you created is a LOCAL group, type: mkgroup -l >> ..\etc\group

10.     If the user you created is a LOCAL group, type: mkpasswd -l -u sftpuser >> ..\etc\passwd

11.     This is one IMPORTANT point where I diverge from the setup notes in the article. You need to edit the registry BEFORE starting your SFTP service. Sometimes Windows just will not let go of settings, and if you start the service now, it will probably be started with incorrect settings (if you followed my instructions). If you started it before reading this, stop the service, follow my instructions bolow, then start the service again. (Back up your registry first.)

     a.     In your passwd file, you now have a listing of the default SFTP directory for your Windows user. You need to change the main folder (/home) location. The README file in OpenSSH provides the best method for doing this (clipped as follows).
     b.      To change the Windows directory /home corresponds to, you will need to edit a registry entry under HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home.
     c.     The value of the key named "native" is the directory that /home is. If you want all your users to enter in a directory on your machine called F:\Users, change "native" to read F:\Users.
     d.     By default, each user will then be placed in the directory F:\Users\username, where username is the name of the user account.

12.     Start the OpenSSH server (service) by typing: net start opensshd

     a.     You can stop it by typing: net stop opensshd

13.     On your firewall, open port 22. This is the default SFTP port.

14.     Now you can test your SFTP server using a client from another computer. I use Filezilla. In Filezilla, create a new (S)FTP site as follows:

     a.     Host (the IP or domain name of your server)
     b.     Port 22
     c.     Server Type: SFTP (using SSH2) (It’s backwards compatible to SSH)
     d.     Logon Type: Normal
     e.     User: Windows username for the user you created
     f.     Password: Windows password for the user you created
     g.     Connect and it should work.
     h.     Note that the user has access to the entire server at this point… that’s not good.

15.     SFTP does not provide a method for locking a user to his/her home directory
 
     a.     Now you MUST set your Windows permissions on the folder you created with the new user’s name to LIMIT this user to this folder.
     b.     My example folder: D\sftp\sftpuser.
     c.     Right-click on the sftpuser folder and select Properties.
     d.     Click the Security tab.
     e.     Click the “Add” button and add your USER to the folder
     f.     Here are the permissions I gave the user:
          i.     List folder contents
          ii.     Read
          iii.     Write

     g.     Now right-click on the “sftp” folder and select properties

     h.     Click the Security tab.

     i.     Click the “Add” button and add your GROUP to the folder

     j.     DENY ALL PERMISSIONS for the Group (checkmark in Deny Full control).

     k.     Now your SFTP user will be able to get into the SFTP folder and subfolders only.

16.     Now test your SFTP again. It should work.
GranModCommented:
Closed, 500 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
frsupportCommented:
Hi,
 
 
I'm trying to do the exact same thing but getting stuck at;
 
9.     If the group you created is a LOCAL group, type: mkgroup -l >> ..\etc\group

10.     If the user you created is a LOCAL group, type: mkpasswd -l -u sftpuser >> ..\etc\passwd
 
 I keep getting ;
 "the syntax of the command is incorrect"
 
 c:\program files (x86)\openssh\bin mkgroup -| >> ..\etc\groups
 
 
server 2008 standard
 
 
 
jjozCommented:
OK, so this Filezilla server on WIndows is SFTP or SSH console ?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
OS Security

From novice to tech pro — start learning today.