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
it appears the config file is somehow screwing things up...
so how can the config be setup to only be used for the specified "hostname" and to not be used if the targeted domain isn't in the config file...
thanks
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
On Mon, 23 Sep 2013 10:06:51 -0400, bruce wrote:
Testing out setting up ssh - using priv/pub keys
The test config file
cat /home/foo/.ssh/config HostName 192.168.5.18
^^^^^^^^
I assume you want "Host" instead of "HostName".
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
it appears the config file is somehow screwing things up...
so how can the config be setup to only be used for the specified "hostname" and to not be used if the targeted domain isn't in the config file...
thanks
hey micheal..
yeah.. it was a stupid typo!
thanks though... hope this helps someone else..
On Mon, Sep 23, 2013 at 11:05 AM, Michael Schwendt mschwendt@gmail.com wrote:
On Mon, 23 Sep 2013 10:06:51 -0400, bruce wrote:
Testing out setting up ssh - using priv/pub keys
The test config file
cat /home/foo/.ssh/config HostName 192.168.5.18
^^^^^^^^
I assume you want "Host" instead of "HostName".
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
it appears the config file is somehow screwing things up...
so how can the config be setup to only be used for the specified "hostname" and to not be used if the targeted domain isn't in the config file...
thanks
-- users mailing list users@lists.fedoraproject.org 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