Re: ssh again..

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

 



On 07/07/2016 06:07 PM, bruce wrote:
What do I need to add to the local box, or to box1 / box2 to permit me to hop from box1 to box2 without having to add a key from/between box1 and box2?

You need to install the public key on all five systems.

if ssh forwarding is the soln, what has to be added to which files, on which boxes?



SSH agent forwarding requires that you have an agent. If your workstation is running GNOME, then you have an SSH agent. Otherwise, you might need to set one up, and that process depends on what your desktop is.

An SSH agent loads your private keys and performs SSH key authentication on behalf of your SSH clients. If you use "ssh -A" to connect to a system (for example, box1), then your shell session on that system will also have a socket that it connected (forwarded) to the SSH agent on your workstation. When you make another connection (for example, from the session on box1 to the host box2), the key authentication traffic is passed between the new host and your workstation.

Forwarding, then, avoids copying your private key to systems other than your workstation, reducing the opportunity for theft of the private key. Forwarding is still vulnerable to misuse if you forward the socket to a system hat has been compromised, but only for as long as you have an open SSH connection to that system. Your keys should be generated on your workstation, and your private key should never be copied to any other system.

So, make sure your public key is installed on all of the systems you want to use as SSH servers, make sure your workstation has an SSH agent running, and use "ssh -A" to connect when you are going to hop to another system.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
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