[Discuss] hosts.equiv

dan moylan jdm at moylan.us
Mon Jun 19 11:50:12 EDT 2023



On Mon, 19 Jun 2023 10:03:49 daniel barrett wrote:
>On June 18, 2023, dan moylan wrote:
>> moylan cmd[448] ssh -p22 -i /home/moylan/.ssh/rsync.key moylan at aldeberan
>> works without asking for a password.
>>
>> moylan cmd[449] rsync -r -e ssh -i /home/moylan/.ssh/rsync.key
>>      /home/moylan/foo moylan at aldeberan:
>> asks for a password.

> I wonder if, in your rsync command, the -i option is being passed to
> rsync rather than ssh, so rsync.key isn't being used.

> Instead of passing SSH options on the rsync command line, create a
> configuration for your remote host by adding this to ~/.ssh/config:

> Host funky
> Hostname albeberan
> User moylan
> IdentityFile ~/.ssh/rsync.key
> IdentitiesOnly yes

> Then run:

> $ rsync -r -e ssh /home/moylan/foo funky:

> See if that helps.

not sure if i quite understand.  the remote host to which
i'm trying to send the file is aldeberan.  i would think the
command should be:

  $ rsync -r -e ssh /home/moylan/foo aldeberan:

who is funky?

tia,
ole dan

j. daniel moylan
84 harvard ave
brookline, ma 02446-6202
617-777-0207 (cel)
jdm at moylan.us
www.moylan.us
[BLM]


More information about the Discuss mailing list