Results 1 to 3 of 3

Thread: SSH Server - SFTP - Remote CIFS Share

  1. #1
    Join Date
    Dec 2008

    SSH Server - SFTP - Remote CIFS Share

    I have a windows server running an FTP server and the root of the FTP server is a remote share on another windows server. I want to create an SFTP(SSH) server in ubuntu and have the home directories for the users be on a remote windows server. Is this something that can be done? I know how to install the SSH server and get SFTP going but how can I get the SFTP user redirected to the remote windows share where their files exist? The files must be on the remote windows server because there is an application that runs and puts them there so it can't be a different location.

    Should I make a permanent CIFS mount to the windows share for the SFTP home folder? (How?)
    Is there a way to have each user mapped to a different folder on the mounted CIFS folder? (How?)
    The last question I have is if there is any way to get their AD usernames and passwords to work for SFTP access?

    Thanks for the help!

  2. #2
    prodigy_ is offline May the Ubuntu Be With You!
    Join Date
    Mar 2008

    Re: SSH Server - SFTP - Remote CIFS Share

    You can mount CIFS at boot using /etc/fstab like any other FS. For AD-based auth you need to add your Ubuntu server to the AD domain.

    As for home folders I'm not sure. Never used Linux with AD auth myself.

  3. #3
    Join Date
    Mar 2007
    Denver, CO
    Ubuntu Mate 16.04 Xenial Xerus

    Re: SSH Server - SFTP - Remote CIFS Share

    I'm sure its possible to do what you want be mounting the remote directories with cifs (samba). Wouldn't it just be easier however to run cygwin on the windows box and have the users log in directly?

    But I do have a similar setup:
    Linux Box1 >>>>sshfs mount>>>>Linux Box2>>>>cifs mount>>>Windows box

    There is a subdirectory on Linux Box 1 which I can directly access those files on the Windows box.
    On the Linux Box 2 I mounted the cifs shares with the following:
    #Network LapTopShare
    // /media/BJPDR10-Downloads cifs guest,uid=1000,iocharset=utf8,codepage=unicode,uni code 0 0
    Last edited by kevdog; March 20th, 2013 at 05:30 PM.


Posting Permissions

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