Home SSH server shortcut
Post
Cancel

SSH server shortcut

Edit file ~/.ssh/config (create if not exist)

1
2
3
4
Host myserver
	Hostname 192.168.1.100 (or server domain: abc.com)
	User root
	Port 4444
  • Host: Any name you want, easy to remember (ex: project name)
  • Hostname: IP server (or server domain)
  • User: username to access server
  • IdentityFile: SSH public key, default is ~/.ssh/id_rsa
  • Port: port ssh of server, default is 22
  • ServerAliveInterval: server connect timeout
  • ProxyCommand: special command when connect to server
This post is licensed under CC BY 4.0 by the author.