Results 1 to 5 of 5

Thread: sftp or ftps

  1. #1
    Join Date
    Jun 2009
    Location
    Somewhere with hills
    Beans
    172
    Distro
    Ubuntu 10.10 Maverick Meerkat

    sftp or ftps

    Okay I want to share files over the web with only a few people and limiting them to certain folders. I have been doing a remote access (ssh) to my server to access it from a pc on the local network. I later found out the same program doing ssh (open_ssh) was also doing sftp, great I could do both with one system account. Problem I couldn't find away to configure another user to go over the web with limited folder access without messing up my user to access the pc. I tried ftps by using vsftpd, I couldn't get chroot set up correctly or even log in. So my question is what program and/or protocol should I use to do secure ftp over the web?

    OS: Ubuntu 64bit 10.04
    ♫♪♫ You just keep on trying till you run out of cake ♪♫♪

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,667
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: sftp or ftps

    You should be able to create a non administrator user with adduser. Then you put the files you want to share in that user's home. By default the new user will have access to both ssh and sftp.

    In the client side, they can also access your files using sftp, or rsync over ssh. And even if they are in Windows by using either WinSCP, Filezilla, or FireFTP(Firefox).

    That has worked very well for me.

    I hope it helps.

  3. #3
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sftp or ftps

    You can jail users with openssh, and make it so that a user can only use sftp.

    See here.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #4
    Join Date
    Jun 2009
    Location
    Somewhere with hills
    Beans
    172
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: sftp or ftps

    thx for the replies. CharlesA, the link was helpful on setting up the basics of what I wanted to do. I never thought of looking up chroot sftp. I did what the link said but it wasn't a full tutorial so I found one one here on the forums. I now have it all set up with both users using the correct settings. Now I just need to see if I can see if I can configure the users to only listen on certain ip/ports. Thanks for the help!
    ♫♪♫ You just keep on trying till you run out of cake ♪♫♪

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: sftp or ftps

    You'd have to set the openssh-server to listen on whatever port you want.

    Do you want it to only allow access from one ip address, or do you want it to listen on a specific interface/ip address?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •