<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
-------- Original MessageĀ --------<br>
Subject: Re: [CentOS] SSH without password on CentOS 5 ?<br>
From: Akemi Yagi <a class="moz-txt-link-rfc2396E" href="mailto:amyagi@gmail.com"><amyagi@gmail.com></a><br>
To: CentOS mailing list <a class="moz-txt-link-rfc2396E" href="mailto:centos@centos.org"><centos@centos.org></a><br>
Date: Monday, July 20, 2009 11:21:28 AM<br>
<blockquote
cite="mid:bfa89a870907200921o1a07603fi2b61e2ce0541bf5b@mail.gmail.com"
type="cite">
<pre wrap="">On Mon, Jul 20, 2009 at 9:14 AM, Niki Kovacs<a class="moz-txt-link-rfc2396E" href="mailto:contact@kikinovak.net"><contact@kikinovak.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I'd like to use SSH without password so I can use it in scripts (for
example in combination with rsync to do backups). I have Carla
Schroder's "Linux Cookbook" and I'm trying out the various receipts, but
the one for SSH without a password doesn't work. The book is slightly
dated, and I wonder if SSH included in CentOS works differently.
Any suggestions?
</pre>
</blockquote>
<pre wrap=""><!---->
Maybe this CentOS wiki helps?
<a class="moz-txt-link-freetext" href="http://wiki.centos.org/HowTos/Network/SecuringSSH#head-9c5717fe7f9bb26332c9d67571200f8c1e4324bc">http://wiki.centos.org/HowTos/Network/SecuringSSH#head-9c5717fe7f9bb26332c9d67571200f8c1e4324bc</a>
Akemi
_______________________________________________
</pre>
</blockquote>
If you follow the guides step by step they usually work fine. But most
gloss over the end permissions/ownership. It is important (won't work
without it) that you ensure that the .ssh directory and its contents
are owned by the account in which these files reside... to explain it a
different way: If the authorized key files are in /home/bob/.ssh, the
.ssh directory and its files should be owned by bob. The .ssh directory
should have 700 permissions and any files within it 600.<br>
<br>
-Blake<br>
</body>
</html>