Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 1999 19:18:03 -0600 (CST)
From:      "Douglas K. Rand" <rand@meridian-enviro.com>
To:        keith@apcs.com.au
Cc:        questions@FreeBSD.ORG
Subject:   Re: scp ssh ?
Message-ID:  <14064.21579.793390.238423@deneb.meridian-enviro.com>
In-Reply-To: <XFMail.990318082240.keith@apcs.com.au>
References:  <XFMail.990318082240.keith@apcs.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Keith> I have a local network and I wish to transfer secure data every
Keith> hour using cron.

Keith> Problem is 'scp' required a password to contine.

Keith> I'm trying to use:

Keith> /usr/local/bin/scp -C /home/fred/file root@fred.localhost:/home/fred/file

Keith> I have a file in /root/.shosts: hostname.localhost root

They way we do this is with RSA keys that don't have a passphrase. But 
I'd be *very* wary of allowing root access with out any passwords or
passprhases. If possible, I'd suggest creating a seperate user just
for file transfers like this, use ssh-keygen to give that user a key,
and on the host fred put the public part of the key in
~/.ssh/authorized_keys.

Check out the man pages on ssh and ssh-keygen.


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?14064.21579.793390.238423>