Create SSH aliases for quick and easy remote server access, reducing the need to remember lengthy commands.
Add New SSH Alias
- Open the SSH config file
nano ~/.ssh/config
- Add the alias for your remote server
Host forge
HostName 192.168.1.99
User forge
# Port 2222
Using The Alias
To connect using the alias
ssh forge
Now you can access your server with just the alias forge
, simplifying the connection process.