Re: Good secure file transfer, was Re: How safe are FTP servers?



On 29 May, 02:05, Ertugrul Soeylemez <do-not-spam...@xxxxxxxx> wrote:

SSH means `Secure SHell'. That implies regular shell access. However,
if you system is configured properly, then there is no problem with
that, besides that it adds a further layer of potential security
problems. To avoid that, avoid SSH, or chroot it (which is well
possible [1,2]).

[ Note that this is about OpenSSH, not the commercial SSH server at
ssh.com. ]

chrooting OpenSSH is possible. But it's *not* supported by the
authors, and they've previously said "no" to attempts to integrate it.
That means you have to play games like maintaining your own version of
OpenSSH on the server. It's painful: I used to maintain one of the
codebases and download sites for those patche. There are notes at
chroot.sourceforge.net, but it remains difficult to support.

The chroot option in OpenSSH has nothing to do with restricting users
to chroot cages: it restricts the sshd itself for certain operations.
Like the UseDNS option in sshd_config, it's very confusingly named.

.



Relevant Pages

  • Re: sftp server with chrootdirectory setup
    ... After the confusing and limited 'chroot' utilities of PrivSep, which actively destabilized OpenSSH on many systems and provided no user-visible difference, the successful use of such a working chroot capability is a good thing. ... This was a problem for many years, and I'm delighted to see the features made available in this apparently effective fashion. ...
    (comp.security.ssh)
  • Re: is there a market waiting to be discovered?
    ... Currently I am interested in chroot feature and it ... > be lots of patches for openssh but it looks like a mess out there. ... > not just chroot but there could well be other features in ssh.com ...
    (comp.security.ssh)
  • Re: ssh and /etc/group
    ... What OS are you using and what version of SSH? ... login name, shell, UID and GID from the passwd file information, obtained ... First things first: replace with OpenSSH. ... ssh-2.2.0 as under OpenSSH with the 2.9.x chroot patch? ...
    (comp.security.ssh)
  • Re: chroot, scp and security on RedHat 8.0
    ... > chroot jail if a key file exists in the home directory of the login ... instead of the chroot openssh patch to several people, ...
    (Focus-Linux)
  • Re: sshd never restarts
    ... even better, why not use openssh_portable, openssh has many security holes that you may want to avoid ... Additionally - what security holes is openssh known for? ... a million chances happen 99% of the time. ...
    (freebsd-questions)