[Discuss] hosts.equiv

dan moylan jdm at moylan.us
Mon Jun 19 17:15:49 EDT 2023


ON Mon, 19 Jun 2023 daniel barrett wrote:
> On June 19, 2023, dan moylan wrote:
>> On Mon, 19 Jun 2023 10:03:49 daniel barrett wrote:
>>> Host funky
>>>  Hostname albeberan
>>>  User moylan
>>>  IdentityFile ~/.ssh/rsync.key
>>>  IdentitiesOnly yes
>>>
>>> Then run:
>>>
>>> $ rsync -r -e ssh /home/moylan/foo funky:
>>
>> 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?
>
> "funky" is the arbitrary string defined on the first line of the config:
>
> Host funky
>
> The subsequent lines specify what "funky" means:
>
>  Hostname albeberan
>  User moylan
>  IdentityFile ~/.ssh/rsync.key

> So the command "ssh funky" connects to aldeberan with user moylan and
> identify file ~/.ssh/rsync.key. It's like an alias for a remote host
> that only ssh knows about and has custom SSH settings.

> Looks like maybe you haven't used ~/.ssh/config before? You are in for
> a treat! It's a great, time-saving SSH feature. "man 5 ssh_config" for
> full details! :-)

hot damn, that's slick, lots of simplification has ensued.
too soon old, too late smart (or at least knowledgeable).

many thanks,
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