Re: security on linux
- From: Jim Garrison <jhg@xxxxxxxxxxxxxxx>
- Date: Sun, 13 May 2007 21:27:30 -0500
General Schvantzkoph wrote:
On Sun, 13 May 2007 18:03:36 -0400, Randy Yates wrote:
StrictModes yes
RSAAuthentication yes
PermitEmptyPasswords no
PasswordAuthentication no
2. If I do this, then doesn't that mean that HDST must contain the
public
key of every HSRC host I want to login from in the account's
~/.ssh/authorized_keys? So that means that I can't login from an
arbitrary host? It is a requirement for me that I be able to login
from an arbitrary host.
It does mean that you can't login from an arbitrary host unless you carry
the private key on a FLASH key, that's what I do. I also have a key on my
Treo so I can ssh in from there also.
Be careful. This is the right way to set up SSH security, but
if you don't have local console access (i.e. the server is at a hosting
site halfway across the country) you have to do things in exactly the
right sequence to avoid locking yourself out.
1) Generate keypair on client system
2) Upload public key to ~/.ssh/authorized_keys on the server
3) TEST connection with command-line -i option
4) Change the sshd config and restart the sshd daemon
If you're doing all this from a remote system, as a last safety net,
don't logout from the SSH session in which you deploy the sshd
config. After you restart the sshd daemon (this won't kill the
existing session), open a second connection and re-verify that you
can connect using your private key. If that fails for some reason
you still have the first session to revert the SSH config and
troubleshoot.
.
- Follow-Ups:
- Re: security on linux
- From: Randy Yates
- Re: security on linux
- References:
- security on linux
- From: Randy Yates
- Re: security on linux
- From: General Schvantzkoph
- Re: security on linux
- From: Randy Yates
- Re: security on linux
- From: Randy Yates
- Re: security on linux
- From: General Schvantzkoph
- security on linux
- Prev by Date: Ubuntu: Gnome: Calendar Applet: Changing the first day of the week.
- Next by Date: Re: security on linux
- Previous by thread: Re: security on linux
- Next by thread: Re: security on linux
- Index(es):
Relevant Pages
|