BackupPC-users

Re: [BackupPC-users] ssh don't work to backup localhost

2009-12-24 16:12:39
Subject: Re: [BackupPC-users] ssh don't work to backup localhost
From: Claude Gélinas <claude AT phyto.qc DOT ca>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 24 Dec 2009 16:10:33 -0500
Le jeudi 24 décembre 2009 14:48:12, Chris Robertson a écrit :
> Claude Gélinas wrote:
> > Le mercredi 23 décembre 2009 22:14:41, Tony Schreiner a écrit :
> >> I forget if anybody has mentioned wrong file permissions as a
> >> possibility. The ~/.ssh directory may not be group or world
> >> writable.This will be logged in /var/log/messages if set incorrectly.
> >>
> >> ------------------------------------------------------------------------
> >>---
> >
> > This is what I have:
> >
> > drwxrwxr-x   2 root root  4096 déc 23 21:40 .ssh
> > -rw------- 1 root root 413 déc 23 21:39 authorized_keys
> > -rw-rw-r-- 1 root root 861 déc 20 22:29 known_hosts
> 
> That would seem to be a problem...
> 
> [root@sas ~]# ls -ld .ssh/
> drwx------  2 root root 4096 Dec 17 15:31 .ssh/
> [root@sas ~]# chmod 775 .ssh/
> [root@sas ~]# ssh localhost
> Password: ^C
> [root@sas ~]# chmod 700 .ssh
> [root@sas ~]# ssh localhost
> [root@sas ~]#^D
> Connection to localhost closed.
> [root@sas ~]#
> 
Thanks it works

chmod 700 .ssh
before = drwxrwxr-x   2 root root  4096 déc 23 21:40 .ssh
after = drwx------   2 root root  4096 déc 23 21:40 .ssh

no more password needed. Backuppc is working great now
-- 
Claude Gélinas agr.
Phyto Ressources inc.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/