Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: restricting originating IP per user

From: Kim, Anthony <anthony.kim(at)vw.com>
Date: Fri Dec 13 2002 - 10:14:54 EST


>From sshd_config(5)

PermitRootLogin
 Specifies whether root can login using ssh(1). The argument must  be ``yes'', ``without-password'', ``forced-commands-only'' or  ``no''. The default is ``yes''.

 If this option is set to ``without-password'' password authenti­  cation is disabled for root.

 If this option is set to ``forced-commands-only'' root login with  public key authentication will be allowed, but only if the  command option has been specified (which may be useful for taking  remote backups even if root login is normally not allowed). All  other authentication methods are disabled for root.

 If this option is set to ``no'' root is not allowed to login.

HTH,
Anthony

-----Original Message-----
From: Attica [mailto:attica@stackheap.org] Sent: Thursday, December 12, 2002 3:04 PM To: Kim, Anthony
Cc: secureshell@securityfocus.com
Subject: RE: restricting originating IP per user

On Wed, 4 Dec 2002, Kim, Anthony wrote:

Do you need help?X

> Actually, this works for me (OpenSSH-3.4p1)
> from="10.10.100.5,192.168.*,127.*" ssh-rsa AAAA[rest of key]

This is very cool and I'm now using this. However, while this does restrict which key a user can use for password-less authentication, the password itself can be brute forced right?

For example, let's say I need to have a particular IP scp as root for a nightly backup (BackupPC to be specific). It can't have a passphrase, which is fine, but I do need to make "PermitRootLogin yes" in my sshd_config file. Now can't people try to brute force root's password?

I'm betting there's a way to specify that root cannot log in via password (i.e. only public-key) without affecting mere mortal accounts, but I don't know how to do it offhand...

Attica



DISCLAIMER: The information transmitted may contain confidential material and is intended only for the person or entity to which it is addressed. Any review, retransmission, dissemination or other use of or taking of any action by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please delete the information from your system and contact the sender.
Received on Fri Dec 13 13:10:34 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:51 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library