SSH Command-Line Configuration: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 20:55, 18 March 2015

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)