Topic: sftp_config missing after Ubuntu install

I installed MySecureShell using the Ubuntu package and it installed and started the service correctly, but when I went to configure it, the sftp_config file described in the documentation was missing.  I couldn't find it in the path listed or anywhere else on my server.  What's going on?

Re: sftp_config missing after Ubuntu install

Hi,

Which version of Ubuntu is on your computer ? 9.04 ? 32bit or 64bit ?
Last version of MySecureShell 1.15 ?

Thanks

Re: sftp_config missing after Ubuntu install

9.0.4 32bit

Re: sftp_config missing after Ubuntu install

Okay the package seems broken...

Under "root", create the file /etc/ssh/sftp_config and put your config in smile

Re: sftp_config missing after Ubuntu install

I did that, using a sample available online.  Here's what my file contains:

## MySecureShell Configuration File ##
#Default rules for everybody
<Default>
        GlobalDownload          0       #total speed download for all clients
                                        # o -> bytes   k -> kilo bytes   m -> mega bytes
        GlobalUpload            0       #total speed download for all clients (0 for unlimited)
        Download                0       #limit speed download for each connection
        Upload                  0       #unlimit speed upload for each connection
        StayAtHome              true    #limit client to his home
        VirtualChroot           true    #fake a chroot to the home account
        LimitConnection         20      #max connection for the server sftp
        LimitConnectionByUser   5       #max connection for the account
        LimitConnectionByIP     5       #max connection by ip for the account
        Home                    /www/$USER.com/     #overrite home of the user but if you want you can use
                                                #       environment variable (ie: Home /home/$USER)
        IdleTimeOut             300     #(in second) deconnect client is idle too long time
        ResolveIP               true    #resolve ip to dns
#       IgnoreHidden            true    #treat all hidden files as if they don't exist
#       DirFakeUser             true    #Hide real file/directory owner (just change displayed permissions)
#       DirFakeGroup            true    #Hide real file/directory group (just change displayed permissions)
#       DirFakeMode             0400    #Hide real file/directory rights (just change displayed permissions)
                                        #Add execution right for directory if read right is set
#       HideFiles               "^(lost\+found|public_html)$"   #Hide file/directory which match
                                                                #this extented POSIX regex
        HideNoAccess            true    #Hide file/directory which user has no access
#       MaxOpenFilesForUser     20      #limit user to open x files on same time
#       MaxWriteFilesForUser    10      #limit user to x upload on same time
#       MaxReadFilesForUser     10      #limit user to x download on same time
        DefaultRights                   0664 0775       #Set default rights for new file and new directory

#       PathDenyFilter          "^\."   #deny upload of directory/file which match this extented POSIX regex

        ShowLinksAsLinks        false   #show links as their destinations
#       ConnectionMaxLife       1d      #limits connection lifetime to 1 day

        Charset                 "ISO-8859-15"   #set charset of computer
#       GMTTime                 +1      #set GMT Time (change if necessary)
</Default>

Re: sftp_config missing after Ubuntu install

Your config is valid.

Just check tag "Charset" because "ISO-8859-15" is used for french smile

Re: sftp_config missing after Ubuntu install

Thanks.  BTW, it'd sure be nice if they published some docs in English rather than just relying on Google Translate (which FUBARs many of the commands).

Re: sftp_config missing after Ubuntu install

Yes but we need some help to translate from french to english....

Re: sftp_config missing after Ubuntu install

The Google translation is generally good, just copy it and then go back and fix the commands.

At any rate, that's outside the scope of this thread.  So if my configuration is correct, why is my client getting disconnected every time I try to download anything?  Are there logs somewhere I should be looking for?

Re: sftp_config missing after Ubuntu install

Just look at "/var/log/sftp-server.log"...

Some SFTP client (like FileZilla) needs 2 connections (1 for browsing and 1 for file transfer).

Re: sftp_config missing after Ubuntu install

OK, thanks.  Posted a new thread in the relevant forum here:

http://mysecureshell.free.fr/forum/view … d=809#p809

Re: sftp_config missing after Ubuntu install

Ok.