SSH config alias block
Add a host alias to ~/.ssh/config so you can run ssh <alias> instead of full ip and user.
Adds a named Host entry in ~/.ssh/config so you can type ssh myserver instead of the full ssh -i ~/.ssh/key user@1.2.3.4. Supports all SSH options per host.
When you need this: When you regularly connect to multiple servers and want to stop typing full hostnames and key paths.
Variables
Command
2 views
0 copies
Related in this category
Log in to save
Free account — save snippets into your own collections.