ssh - config setup file conflict??
Reindl Harald
h.reindl at thelounge.net
Mon Sep 23 14:21:20 UTC 2013
Am 23.09.2013 16:06, schrieb bruce:
> Testing out setting up ssh - using priv/pub keys
>
> The test config file
>
> cat /home/foo/.ssh/config
> HostName 192.168.5.18
> User foo
> IdentityFile /home/foo/id_rsa_foo
>
> i can ssh foo at 192.168.5.18 with no issue, works as it should
>
> however, any other ssh is also intercepted by the config file..
> ie
> ssh abc at 123.456 comes back with a
> "ssh: connect to host 192.168.5.18 port 50122: Connection refused"
>
> but if i do a ssh -i id_rsa_foo abc at 123.456 the connection is accepted/connects
you simply need to make default settings and get rid of "HostName"
this below works for a lot of target-machines to specifiy different
ports, compression configs and so on
____________________________________
Host *
IdentityFile ~/.ssh/id_dsa
Host 192.168.5.18
User foo
IdentityFile /home/foo/id_rsa_foo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130923/61bc5eb6/attachment-0001.sig>
More information about the users
mailing list