sftp Newbie Questions!

From: Andrew McCall (it.andrew.mccall_at_oldham.gov.uk)
Date: 06/25/03

  • Next message: Chuck Milam: "Re: Securing ssh tunnels."
    To: secureshell@securityfocus.com
    Date: 25 Jun 2003 11:22:01 +0100
    
    

    Hi,

    (This email *does* have SSH questions - I promise you! :) ) I have just
    posted my scenario as it helps to understand the questions I am asking
    at the bottom.

    I am implementing a project to offer a free "drop-box" service for all
    the schools in our area, and these are the basic requirements.

    Server Requirements
    ===================

    o The sftp should only be accessed by a single IP address (the server
    has multiple IP's, and SSH is already used for other things on other
    IP's)
    o Upon login a message must be displayed giving a warning and some
    instructions on who to contact should they run into problems

    User Requirements
    =================

    o Each school can read and write files their own directory
    o Each school can write files into other's home directories, but they
    can't view or overwrite other schools files
    o A single administrator can read and write into all schools directories
    o The users should only by navigate /exports/sftp/ and should be
    "jailed" to that directory.
    o Schools only have sftp access, and no real shell.

    I can do all this really easy with a normal ftp daemon such as ProFTPd
    or vsFTPd, however due to the nature of the files, they have to be
    transfered in an encrypted manner. I presumed (first mistake!) that
    sftp was just a normal ftpd tunneled through SSL and that it would be
    easy to set up.

    Now after a few days of searching the net, and a few hours of reading
    O'REILLY's SSH : The Secure Shell, I realise that I am wrong :)

    So here are my questions:

    1) How can I display a login message?

    I was thinking about wrapping sftp-server into a script that echo's my
    message, then run sftp-server, but I don't know if this is possible or
    how secure this is.

    2) How can I "jail" users to /exports/sftp?

    I am not too sure if this is possible....

    3) Am I correct in thinking that all my user-level security is done via
    normal file permissions?

    4) Can I bind sftp-server to a single IP address, but still leave
    "normal" SSH running on all other IP addresses? If its not is there
    anyway of installing and run a second instance of OpenSSH that only
    allows sftp connections (I don't think there is due to the way that sftp
    works.)

    I could either use the firewall to block ports/IP's (as I will be doing
    anyway) so this isn't that important....

    Thanks in advance for any help offered.

    -- 
    Andrew McCall <it.andrew.mccall@oldham.gov.uk>
    Oldham Metropolitan Borough Council
    **********************************************************************
    This email and any files transmitted with it are confidential and
    intended solely for the use of the individual or entity to whom they
    are addressed. If you have received this email in error please notify
    the system manager.
    This footnote also confirms that this email message has been swept by
    MIMEsweeper for the presence of computer viruses.
    www.oldham.gov.uk
    **********************************************************************
    

  • Next message: Chuck Milam: "Re: Securing ssh tunnels."

    Relevant Pages

    • Re: ftp over ssh
      ... SFTP is secure, but to use SFTP you generally have to give a user SSH ... If your sftp-server is not there, use locate sftp-server to find it." ... sftp only kept coming up on a few different mailing lists I was on at ...
      (freebsd-questions)
    • Re: Openssh w/restricted shell wierdness
      ... >>Users are able to ssh into the machine in question fine, ... > The user needs to be able to run sftp-server to use sftp. ...
      (comp.security.ssh)
    • Re: sftp w/o ssh
      ... > this host from outside. ... provided they both (SSH and SFTP) ... which in turn runs sftp-server. ...
      (comp.unix.solaris)
    • Re: sftp problems with 3.9 on HP
      ... >>ChallengeResponseAuthentication also set to yes that ssh connects just ... >>fine but when I sftp to the system I get disconnected right after ... > against is not in the system's default library search path (ie ... My bad, I had checked the permissions on sftp-server, but neglected to ...
      (comp.security.ssh)