Use ssh_config To Simplify Your Life | Linux Today

Use ssh_config To Simplify Your Life

Written By
MF
Mitch Frazier
Mar 26, 2010

“When using multiple systems the indispensable tool is, as we
all know, ssh. Using ssh you can login to other (remote) systems
and work with them as if you were sitting in front of them. Even if
some of your systems exist behind firewalls you can still get to
them with ssh, but getting there can end up requiring a number of
command line options and the more systems you have the more
difficult it gets to remember them. However, you don’t have to
remember them, at least not more than once: you can just enter them
into ssh’s config file and be done with it.

“For example, let’s say that you have two “servers” that you
connect to regularly, one at your house that’s behind your
firewall. Further, let’s say that you use dyndns to make your home
IP address known, and that you’ve got ssh listening on port 12022
rather than the default port 22 (and you’ve got your firewall
forwarding that port to the server). So to connect you need to
run:

$ ssh -p 12022 example.dyndns.org


Complete Story

MF

Mitch Frazier

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.