Re: [Nolug] scp within a cron job

From: Scott Harney <scott_harney_at_yahoo.com>
Date: 14 Mar 2002 20:31:44 -0600
Message-ID: <87bsdqlfxr.fsf@yahoo.com>

Ron Johnson <ron.l.johnson@cox.net> writes:

Need to add the public portion to the .ssh/authorized_keys on the
remote side. first ssh to the remote. From there ssh back to the
local side. This gets the host keys stored on both sides. Then copy
(or append) the contents of identity.pub on the local side to
.ssh/authorized_keys on the remote side. you may need to use
.ssh/authorized_keys2 on the remote side depending on your version of
ssh. Also file permissions are critical. authorized_keys* must be
user read-write only.

> Hi.
>
> $ ssh-keygen -t rsa
> <blah blah blah>
> $ scp -B -i ~/.ssh/id_rsa blah me@fubar:.
> Permission denied (publickey,password,keyboard-interactive).
> lost connection
>
> I ran "ssh-keygen -t rsa" on both the local and remote node.
> Can someone poing me in the correct direction?
>
> Thanks
> --
> +------------------------------------------------------------+
> | Ron Johnson, Jr. Home: ron.l.johnson@cox.net |
> | Jefferson, LA USA http://ronandheather.dhs.org:81 |
> | |
> | "(Women are) like compilers. They take simple statements |
> | and make them into big productions." |
> | Pitr Dubovitch |
> +------------------------------------------------------------+
>
> ___________________
> Nolug mailing list
> nolug@nolug.org
>

-- 
Scott Harney <scott_harney@yahoo.com>
Broadband Services Manager (LA)
Charter Communications
___________________
Nolug mailing list
nolug@nolug.org
Received on 03/14/02

This archive was generated by hypermail 2.2.0 : 12/19/08 EST