Simplify Remote Server Access: Master SSH Config on macOS
Learn how to configure SSH on macOS to quickly connect to remote servers using a custom host alias, covering directory setup, config file creation, essential parameters, and a one‑command login workflow.
Reading font

To access a remote server via SSH, use the command ssh username@ip_address, e.g., ssh [email protected], then enter the password.
On macOS (similar steps apply to other operating systems), navigate to the SSH directory with cd ~/.ssh/. If a config file is absent, create it using touch config and edit it with your preferred editor.
Add the following content to the config file:
Host jhd
HostName 1xx.1xx.1xx.67
User root
IdentitiesOnly yes
The fields mean:
Host : a nickname you can use later to refer to this server.
HostName : the server's IP address.
User : the login username on the server.
IdentitiesOnly yes : a fixed configuration option.
After saving the file, you can connect with a short command: ssh jhd Enter the password when prompted, and you will be logged into the remote host.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.