From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harihar Krishnan Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Disable SSH direct root login... Date: Mon, 22 Mar 2004 08:14:28 +0300 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <89DC8551D0740C4FBAF0BE56680783DD07F5F2@mail1srv.bma.gov.bh> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1079932463 17059 80.91.224.253 (22 Mar 2004 05:14:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Mar 2004 05:14:23 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Mar 22 06:14:10 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1B5HlJ-0001JM-00 for ; Mon, 22 Mar 2004 06:14:10 +0100 Original-Received: (qmail 30351 invoked by uid 5); 22 Mar 2004 05:13:59 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 30336 invoked by uid 49493); 22 Mar 2004 05:13:59 -0000 Original-Received: from harik@bma.gov.bh by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(1.9/5.0):. Processed in 0.985753 secs); 22 Mar 2004 05:13:59 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 22 Mar 2004 05:13:58 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30899) with ESMTP id <0HUY00H6MP77UZ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 22 Mar 2004 00:13:57 -0500 (EST) Original-Received: from xsrv.bmagtway.gov.bh ([217.17.227.178]) by emroute3.ornl.gov (PMDF V6.2-X17 #30899) with ESMTP id <0HUY0042DP6Z9S@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 22 Mar 2004 00:13:49 -0500 (EST) Original-Received: from mail1srv.bma.gov.bh (MAIL1SRV [192.168.1.2]) by xsrv.bmagtway.gov.bh with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id GQ90L8TS; Mon, 22 Mar 2004 08:00:59 +0300 Original-Received: by mail1srv.bma.gov.bh with Internet Mail Service (5.5.2657.72) id ; Mon, 22 Mar 2004 08:14:29 +0300 Content-return: allowed Original-To: 'Tru64 User Group' X-Mailer: Internet Mail Service (5.5.2657.72) Importance: high X-Priority: 1 Xref: main.gmane.org gmane.os.tru64.managers:6664 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6664 Thanks to responses from Kris Chandrasekhar, Martin Adolfsson and few others, the solution was straightforward as follows: 1. In "/etc/ssh2/sshd2_config", unremark the "PermitRootLogin" line and change its value to "no. 2. Reset the sshd daemon by executing "/sbin/init.d/sshd reset". ------------------------------------------------------------------------= ---- ---------------- Original message: On removing the "ptys" line from /etc/securettys, I could not login = directly as root when using the Windows telnet utility. However, after = implementing SSH on the hosts, the direct root login works. How do I disable it for = the SSH clients? ------------------------------------------------------------------------= ---- ---------------- Harihar K =09 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=20 DISCLAIMER:=20 =93This communication is intended solely for the named recipient and = others authorized to receive it. It may contain confidential or legally = privileged information. If you are not the intended recipient, please notify us immediately, and note that any disclosure, copying, distribution or = action you may take in reliance on this communication is strictly prohibited = and may be unlawful. Unless indicated otherwise, this communication is not intended nor should it be taken to create any legal relations, = contractual or otherwise. Bahrain Monetary Agency(BMA) is neither liable for the = proper and complete transmission of the communication, nor for any delay in = its receipt. Whilst BMA undertakes all reasonable efforts to screen = outgoing e-mails for viruses, it cannot be held liable for any viruses = transmitted by this e-mail.=94 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=20