Re: ssh - config setup file conflict??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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@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@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

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux