Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2008 22:14:44 -0400
From:      kalin m <kalin@el.net>
To:        Jay Chandler <lists@sequestered.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: scp
Message-ID:  <48FFDE14.1080103@el.net>
In-Reply-To: <7131CDCF-E6F4-49DD-9B86-605CEECAA73A@sequestered.net>
References:  <48FFD609.6090206@el.net> <7131CDCF-E6F4-49DD-9B86-605CEECAA73A@sequestered.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Jay Chandler wrote:
>
> On Oct 22, 2008, at 6:40 PM, kalin m wrote:
>
>> hi all...
>>
>> i need to do a script to copy a file from a remote machine via scp 
>> with a key and without a password....
>>
>> here is what i'm doing:
>>
>> 1. ssh-keygen -t rsa
>> 2. scp new_key.pub to user@remote_host (with password)
>> 3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys
>>
> Should be authorized_keys.

it is. i just misspelled it in the message...  
>
> I usually cheat and grab a copy of ssh-copy-id from the web; I suspect 
> your issue has to do with permissions for the .ssh directory and the 
> authorized_keys file.
permissions are 600 for the file and 700 for .ssh

the users are different on the local machine and remote_host. my guess 
is that if i point to the right key with -i it should work correct...

now doing -vvv as  Greg Larkin suggests... 


thanks...







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