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
Test the alias
To connect using the alias
ssh forge
Now you can access your server with just the alias forge
, simplifying the connection process.