Hands-on task
Set a host alias
To avoid typing a long command every time, set up an alias prod in ~/.ssh/config for the connection: hostname example.com, user deploy, port 2222. After that, ssh prod should connect with these parameters.
Open /root/.ssh/config in the Editor tab (the file doesn't exist yet — create it in the .ssh directory) and save it.
- ssh config
- host aliases
- client configuration
- host/hostname/user/port