[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with ssh



First, you want to use ssh-keygen to create a public/private keyset for
root, as well as whichever user(s) you want to be able to become root
via ssh (assuming that you haven't already done this).  Second, create
the file "authorized_keys" in root's ~/.ssh directory.  You want this
file to contain the public key of everyone that's allowed to use ssh to 
become root on that machine (cat my_public_key >>authorized_keys).  At
this point, you should be able to do "ssh -l root my.target.machine".

Debian defaults to only allowing root to login locally (see
/etc/securetty for more information on this) so you shouldn't have to do
anything special to disallow things like telnet logins (unless, of
course, you've reconfigured this previously).

On Fri, Sep 25, 1998 at 09:49:06AM -0700, Brian Schramm wrote:
> I figure that I need to configure something at this time but I am not
> quite sure where to start.
> 
> I installed the ssh deb file on my Debian 2.0 machine.  I have also
> installed the redhat side on my redhat machine.  Now I would like to
> configure it so the root user has access to the debian machine by ssh
> only.
> 
> I have the man page for ssh but I am a little lost.  Do I configure a
> file for access to user accounts like the hosts.allow?  Or do I have
> to build a set of keys to copy to the local machines?  
> 
> Any help would be apreciated.
> 
> Brian


Reply to: