You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For easier SSH access, you can configure your `~/.ssh/config` to automatically include Lima's SSH configurations:
64
+
To connect directly without specifying the config file, add this to your `~/.ssh/config`:
65
65
66
66
```
67
67
Include ~/.lima/*/ssh.config
68
68
```
69
69
70
-
Add this line to the beginning of your `~/.ssh/config` file. If you have existing `Host` entries in your SSH config, you may need to use the following format instead:
71
-
72
-
```
73
-
Match all
74
-
Include ~/.lima/*/ssh.config
75
-
```
76
-
77
-
After adding this configuration, you can connect to Lima instances directly:
78
-
70
+
Then you can connect directly:
79
71
```bash
80
-
# Connect to the default instance
81
72
ssh lima-default
82
-
83
-
# Connect to a named instance
84
-
ssh lima-ubuntu
85
-
86
-
# Use SSH with other tools
87
-
rsync -a -e ssh . lima-default:/tmp/repo
88
73
```
89
74
90
-
This SSH integration also enables Lima instances to work seamlessly with various tools:
91
-
92
-
-**VSCode**: Use the Remote-SSH extension to connect to `lima-{NAME}`
93
-
-**Ansible**: Target Lima instances using their SSH hostnames in inventory files
94
-
-**SFTP**: Transfer files using `sftp lima-{NAME}`
95
-
-**SSHFS**: Mount remote filesystems with `sshfs lima-{NAME}: /local/mountpoint`
96
-
97
-
> **Note**: SSHFS may have limitations on non-Linux platforms like macOS and Windows.
98
-
99
75
### Shell completion
100
76
- To enable bash completion, add `source <(limactl completion bash)` to `~/.bash_profile`.
101
77
- To enable zsh completion, see `limactl completion zsh --help`
0 commit comments