Re: sftponly

From: Dan Gapinski (DanGapinski_at_qsi-r2.com)
Date: 06/23/03

  • Next message: Tim Greer: "Re: sftponly"
    To: "Tim Greer" <chatmaster@charter.net>, <filipi@em.pucrs.br>, "Yukinori Shishime" <yuki@mbc.ocn.ne.jp>
    Date: Mon, 23 Jun 2003 08:59:03 -0500
    
    

    I agree - chrooting is a good practice, and I wouldn't set SSH up without
    it. However, adding a specific shell like SCPonly or RSSH is what (see
    http://www.bpfh.net/simes/computing/chroot-break.html for more info on
    breaking out of chroot jails) really makes remote file transfer solid when
    you pair them with a chroot jail.

    I might recommend the following sites to look at:
    www.tjw.org/chroot login/
    www.linux-mag.org/cgi-bin/printer.pl?issue=2002&article=chroot
    you can also look at the chroot jail project, but I never had limited
    success with it:
    http://www.gsyc.inf.uc3m.es/~assman/jail/

     My best,
    Dan
    ----- Original Message -----
    From: "Tim Greer" <chatmaster@charter.net>
    To: <filipi@em.pucrs.br>; "Yukinori Shishime" <yuki@mbc.ocn.ne.jp>
    Cc: <secureshell@securityfocus.com>; <yuki@mbc.ocn.ne.jp>
    Sent: Saturday, June 21, 2003 5:27 PM
    Subject: Re: sftponly

    > I would, instead, recommend a solid chroot/jail for SSH access, rather
    than
    > only sftp/scp, etc. Of course they can do more with SSH access, but they
    > could have a CGI/PHP, etc. script do the rest for them without SSH access
    at
    > all anyway. Basically,m a secure system being secure, you shouldn't worry
    > about SSH access or not--being if SSH access allows someone to compromise
    > your system/server, they could just as easily use other methods. SSH
    chroot
    > can make it so the newbies can't snoop around so much, but really, I'd not
    > worry about it as much as the security of the system itself anyway.
    > --
    > Regards,
    > Tim Greer chatmaster@charter.net
    > Server administration, security, programming, consulting.
    >
    > ----- Original Message -----
    > From: "Yukinori Shishime" <yuki@mbc.ocn.ne.jp>
    > To: <filipi@em.pucrs.br>
    > Cc: <secureshell@securityfocus.com>; <yuki@mbc.ocn.ne.jp>
    > Sent: Saturday, June 21, 2003 4:08 AM
    > Subject: Re: sftponly
    >
    >
    > > Hi,
    > >
    > > > From: "Filipi D. Vianna" <filipi@em.pucrs.br>
    > > > Subject: sftponly
    > > > Date: Fri, 20 Jun 2003 12:19:01 +0300
    > > > Message-ID: <3EF2D185.5040202@em.pucrs.br>
    > >
    > > > Hi,
    > > >
    > > > I'm using a Linux Box, with OpenSSH_3.5p1 with the subsytem
    > > > sftp to file transfers and AllowUsers to limitate the users
    > > > that can log in.
    > > >
    > > > All these uses have /bin/bash set as their login shell.
    > > >
    > > > But I want that some of them have only sftp, not shell.
    > > > How can I do that?
    > > >
    > > > I didn't found anything that helps.
    > > >
    > > > Regards,
    > > > Filipi Vianna
    > > >
    > >
    > > Recently, same questions were posted in this ML.
    > > See:
    > > Subject: allow only sftp?
    > >
    http://www.securityfocus.com/archive/121/318568/2003-04-09/2003-04-15/1
    > >
    > > Subject: SFTP without SSH session access
    > >
    http://www.securityfocus.com/archive/121/324131/2003-06-02/2003-06-08/1
    > >
    > > Regards,
    > > Yuki
    > >
    >
    >


  • Next message: Tim Greer: "Re: sftponly"

    Relevant Pages

    • Re: Need advice on setting of an SSH server for untrusted users
      ... > I've just set up an ssh server so that my customers can download code ... I've set up ssh so that it requires rsa authentication. ... There is a patch for openssh that will cause it to do a chroot like ... The issue with a chroot jail for ssh is that you have to hand-roll the ...
      (comp.os.linux.security)
    • Re: Problems with Sudo
      ... you can't sudo to root. ... SSH is generally allowed, all limitations should still apply including ... secure, the internet is a very dangerous place. ... allowing someone to break out of a chroot jail by simply logging back ...
      (Ubuntu)
    • Re: sftponly
      ... provided the server is secure or what other services/interfaces you ... > I agree - chrooting is a good practice, and I wouldn't set SSH up without ... > you pair them with a chroot jail. ... Of course they can do more with SSH access, ...
      (SSH)
    • Re: Chroot environment for ssh
      ... > would like to use SSH for the connections, as opposed to FTP, but I ... > users to be able to log into an interactive shell and I ... > want them to 'escape' out of their home directories. ... directives to chroot the groupand/or userthat are to have ...
      (FreeBSD-Security)
    • sftp with chroot
      ... chroot, so that users can be jailed to their home folder only. ... But sftp does not restrict to ... I tried to patch the Openssh 4.3p2 source code from openssh.org as given ... No output written to ssh ...
      (SunManagers)