SSH Command-Line Configuration

From Littledamien Wiki
Revision as of 20:55, 18 March 2015 by Video8 (talk | contribs) (Created page with "Category:SSH Category:Powershell Category:Web Development == Objective == Create an alias for SSH hosts, including `ssh` command line options. == SSH config file...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Objective[edit]

Create an alias for SSH hosts, including ssh command line options.

SSH config file[edit]

Location[edit]

~/.ssh/config (powershell and bash)

Basic settings[edit]

Host littledamien
	HostName littledamien.com
	User username

Now, from the command line, all that's necessary is

> ssh littledamien

Common Options[edit]

  • Port to specify a non-default ssh port
  • IdentityFile (This is a requirement for AWS, for example.)[1]

Notes[edit]

  1. ssh_config(5) (Linux man page)