Re: ssh -- from local/userA --> remote/userB

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

 



On 08Sep2018 17:43, bruce <badouglas@xxxxxxxxx> wrote:
Thanks for replies, found the answer was a weird corrupt
authorized_key file. Simply copied the pub keys and reinserted. For
some reason, it appears that one of the pub keys had been split witn a
"\n" in it..

Cut/paste from a terminal or email can sometimes do that.

If you have root privileges on machine B you can look at the ssh log (/var/log/auth.log or something else, depending on the system - "ls -ltra" in /var/log will at least show you the active log files to make finding it easy).

If you "tail -f /var/log/auth.log" (adjust to suit) on machine B as you do your sshes you will see useful log messages scroll by. They can be very helpful in distinguishing "ssh going to wrong host" (no activity), "ssh as wrong user on machine B", "ssh as user B but bad keys" and so forth.

For security reasons you see little of this detail on the machine A side as all such information helps attackers.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[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