Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2008 21:40:25 -0400
From:      kalin m <kalin@el.net>
To:        freebsd-questions@freebsd.org
Subject:   scp
Message-ID:  <48FFD609.6090206@el.net>

next in thread | raw e-mail | index | archive | help
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

when i try:
# scp user@remote_host:/files/file file

i get password prompt...

what am i missing?!?

thanks....



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