Deadman.org: SSH-Agent - A Tutorial | Linux Today

Deadman.org: SSH-Agent – A Tutorial

Written By
Web Webster
Web Webster
Aug 20, 2000

[ Thanks to Sam
Rowe
for this link. ]

“Security is best when it is handy. ssh-agent is pretty darn
handy. Ssh-agent can authenticate you to a remote machine via
keypairs, rather than the traditional hand-typed username/password
combination, with no loss of security.”

In this tutorial, I hope to teach you how to use ssh-agent
to automate logging in to your machines securely via the X Window
System. One thing to note about this tutorial, my intention isn’t
to give you the nuts and bolts of ssh or ssh-agent, but rather to
give you a quick-and-dirty method to get more secure.
I do,
however, encourage you to look for other online documentation to
learn about the ways that ssh works and the things that are going
on behind the scenes in this tutorial. This tutorial also assumes
you have some knowledge of X11 and how to start your
window-manager/desktop-environment of choice. The machine that I
use is running RedHat 6.2 and ssh 1.2.27, but this tutorial should
work across platforms.”

“The first step in using ssh-agent is to generate your private
and public keys. The private key will have a pass-phrase that
allows ssh-agent to decrypt it and keep the decrypted key in
memory. Pass-phrases should and can be much longer than
conventional passwords…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.