Skip to content

Commit fda63b6

Browse files
CopilotAkihiroSuda
authored andcommitted
Document SSH config Include usage for easier Lima instance access
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 73c5f97 commit fda63b6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

website/content/en/docs/usage/_index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ $ limactl ls --format='{{.SSHConfigFile}}' default
5959
$ ssh -F /Users/example/.lima/default/ssh.config lima-default
6060
```
6161

62+
#### Using SSH without the `-F` flag
63+
64+
To connect directly without specifying the config file, add this to your `~/.ssh/config`:
65+
66+
```
67+
Include ~/.lima/*/ssh.config
68+
```
69+
70+
Then you can connect directly:
71+
```bash
72+
ssh lima-default
73+
```
74+
6275
### Shell completion
6376
- To enable bash completion, add `source <(limactl completion bash)` to `~/.bash_profile`.
6477
- To enable zsh completion, see `limactl completion zsh --help`

0 commit comments

Comments
 (0)