Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2000 13:12:22 +0200
From:      "R.I.Pienaar" <rip@pinetec.co.za>
To:        mark <mark@itsunix.uwc.ac.za>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: your mail
Message-ID:  <20000118131222.I7945@pinetec.co.za>
In-Reply-To: <0001181244430A.25159@itsunix.uwc.ac.za>
References:  <0001181244430A.25159@itsunix.uwc.ac.za>

next in thread | previous in thread | raw e-mail | index | archive | help
> The problem comes in when I scp it asks for a password.
> I am not sure how to use the cron to send a password ( not safe either if
> someone gets to see the cron file )

ssh allows you to use certificates to gain access to servers, you dont need
passwords.

on the backup server run ssh-keygen as the user that will do the scp's, look
in that user home directory for a file called .ssh/identity.pub place this
file in the remote machine - under the user dir you are scp into -
~/.ssh/authorized_key  make sure the ~/.ssh and the file authorized_keys are
mode 700 for the directory and 600 for the file.

if all goes well, you should be able to ssh/scp from the backup server to your
other machines without being asked a password.

see the man pages.

-- 
R.I. Pienaar  rip@pinetec.co.za


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000118131222.I7945>