Files
lima/website/content/en/docs/usage/ssh.md
T
Jan Dubois 788a2f3010 lint: add editorconfig-checker for whitespace and newline checks
Add a root .editorconfig enforcing trim_trailing_whitespace and
insert_final_newline, with editorconfig-checker to verify compliance.
Fix all existing violations and update autostart tests to match
the corrected template files.

Fixes #4581

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
2026-02-21 00:34:26 -08:00

1.1 KiB

title, weight
title weight
SSH 3

Instead of the limactl shell command, SSH can be used too:

$ limactl ls --format='{{.SSHConfigFile}}' default
/Users/example/.lima/default/ssh.config

$ ssh -F /Users/example/.lima/default/ssh.config lima-default

This is useful for interoperability with other software that expects the SSH connectivity.

Using SSH without additional options

Add the following line to your ~/.ssh/config:

Include ~/.lima/*/ssh.config

Then you can connect directly without specifying -F:

ssh lima-default

This configuration is notably useful for the Remote Development mode of Visual Studio Code.

Using SSH without a config file

If your SSH client does not support a config file, try specifying an equivalent of the following command:

ssh -p <PORT> -i ~/.lima/_config/user -o NoHostAuthenticationForLocalhost=yes 127.0.0.1

The port number can be inspected as follows:

limactl list --format '{{ .SSHLocalPort }}' default

See also .lima/default/ssh.config.