Skip to content

Commit 919332e

Browse files
authored
Merge pull request #3675 from lima-vm/copilot/fix-3614
Document SSH config Include usage for easier Lima instance access
2 parents b1c9ff7 + fda63b6 commit 919332e

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)