SSH Command-Line Configuration

From Littledamien Wiki
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)