Re: SSH logins only

From: Mario Stargard (mstargard_at_myprivacy.ca)
Date: 02/15/05

  • Next message: BLABLA_at_BLALABLA.COM: "cannot install Digital Unix 4.0A"
    Date: Mon, 14 Feb 2005 21:39:24 -0500
    
    

    TCH wrote:
    > it's this the /etc/securettys file of course.....
    > "TCH" <noggood1@nogood.com> wrote in message
    > news:420f1c90$0$503$626a14ce@news.free.fr...
    >
    >>Try to edit this file:
    >>
    >>#cat securettys
    >>
    >>/dev/console
    >>local:0
    >>:0
    >>
    >>And set sshd option "permit root login" to yes (the default one i suppose)
    >>+ restart sshd
    >>
    >>"Jack Patteeuw" <jjpatteeuw@earthlink.nospamme> wrote in message
    >>news:LrpPd.10017$oO.4010@newsread2.news.atl.earthlink.net...
    >>
    >>>On Tru64 V5.1B, how do I limit remote root logins to SSH (PuTTY) logins
    >>>ONLY ! (i.e. no telnet, no rsh, no rexec, no remote anything)
    >>
    >>
    >
    >
    If the ptys aren't trusted, I don't think you'll be able to actually
    login. You can pass commands to ssh; even /bin/sh. But actually
    logging in won't work, unless the stock sshd is different than the one I
    compiled.

    One should disallow all telnet sessions, even if root can only log in
    using ssh. This is because the attempt of logging in as root using
    telnet will be passed over the network in the clear.

    If you have regular users using telnet, then restricting root to only
    use ssh isn't going to do much for the security posture, in my opinion.
      Regular accounts with clear passwords on the wire are a threat because
    many exploits require you to start with regular user privileges.

    If you are forced to use telnet, look at other options like ipsec.

    Mario


  • Next message: BLABLA_at_BLALABLA.COM: "cannot install Digital Unix 4.0A"

    Relevant Pages

    • RE: Commentary on the seven words
      ... on root access to telnet. ... Shoot, I use SSH & all that, but if I wanted to allow it for some ... I administrate one system that has 128 clients ...
      (RedHat)
    • Re: How do I unlock a specific user for telnet?
      ... > Usually Im all for telnet when someone says in a high panicky voice "NEVER ... But as far as root goes, I must admit that you might not want ... > If you have su or sudo then you can achieve basically the same thing. ... I don't understand what some people have against ssh in general. ...
      (comp.os.linux.security)
    • Re: how to enable the root in telnet
      ... > You're not supposed to log in as root over telnet. ... > It would be advisable to log in as a normal user via ssh ... > would only gain access as a normal user. ...
      (freebsd-questions)
    • Re: Suggestions for remote admin of linux machines
      ... All I know of is horrible old telnet. ... > (runs as root). ... thousands of lines over SSH to my local console, and `top' shows that ssh is ... Kirk Strauser ...
      (comp.os.linux.misc)
    • Re: Suggestions for remote admin of linux machines
      ... All I know of is horrible old telnet. ... > (runs as root). ... thousands of lines over SSH to my local console, and `top' shows that ssh is ... Kirk Strauser ...
      (comp.os.linux.networking)