Re: ssh connects to originating host

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

 



Geoffrey Leach wrote:
Two systems A and B, connected via wireless. A and B both have the same /etc/hosts. Connecting from B to A, "ssh A", works fine. However on A, "ssh B" logs me into A. This used to work fine; the only clue I have is that ssh did not like the stored RSA key. I let it fix it, and that's when the trouble started. Rebooting A did not fix, nor did removing the saved key and repeating.

Any suggestions?

Thanks.


My best guess:
The stored key issue was symptomatic of the problem resolving host to ip address incorrectly.

There are three things to check:
1) Logged on at host A, what does 'host B' command return for information? Is it the correct address for B? If the wrong address then you need to research whether your dns server or an /etc/hosts entry is the cause. 2) Whatever user you do this as on host A, is there a ~/.ssh/config file? And if so, does it have a stanza that defines how to contact host B, but do so with the wrong name or ip address? 3) It is also possible, but less likely, that on host A you have dnat rules in iptables causing the endpoint for that ssh tcp connection to be changed to a local host based address.

Chris

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux