Categories
Tags
Agent Mode Astro Auto Accept Automation Camping changelog Chat clear CLI Code Actions Codex compact Component Design Configuration context Context Copilot copy Ctrl+S CUDA Cursor Day Trip delegate diff Dynamic Routing Editor Error Error Fix Error Handling experimental Gemini git GitHub GitHub Copilot Google Hiking Hot Springs init Installation Iwate Prefecture Kobe Linux Localization Mac Mention Meteor Shower Mode Switching model Nara Prefecture NES NoAdapterInstalled Node.js nvm OpenAI params plan PowerShell Prompt props Public Key Authentication Python Redirect Reference Rename research rewind SEO Settings share Shell Execution Shift+Tab Shortcut SSH SSH config ssh-copy-id Stargazing Static Site streamer-mode Student undo Update usage Visual Studio VS Code VS2026 Windows WSL
80 words
1 minutes
How to Set Up SSH Config for Easy Server Connections
Table of Contents
Introduction
Typing -i options and user@host every time you SSH into a server is tedious. This guide shows you how to set up a config file to make connections easier.
Steps
1. Prepare .ssh Directory
mkdir -p ~/.ssh
chmod 700 ~/.ssh2. Create Config File
cat >> ~/.ssh/config << 'EOF'
Host myserver
HostName 192.168.1.100
User username
IdentityFile ~/.ssh/key
EOF
chmod 600 ~/.ssh/config| Option | Description |
|---|---|
Host | Alias for the connection |
HostName | Actual hostname or IP |
User | Username |
IdentityFile | Path to private key |
3. Connect
ssh myserverThat’s it.
Related Articles
For creating SSH keys and registering public keys, see:
How to Use ssh-copy-id
How to Set Up SSH Config for Easy Server Connections
https://naonao-na.com/en/posts/ssh-set-config-windows/
