how do i connect to LIMA using SSH? #1221
-
I want to connect to lima (with CLion, from my mac) using ssh, |
Beta Was this translation helpful? Give feedback.
Answered by
AkihiroSuda
Dec 1, 2022
Replies: 2 comments
-
limactl show-ssh --format=config default > ./ssh-config
ssh -F ./ssh-config lima-default More info: $ limactl show-ssh --help
Show the ssh command line
Usage:
limactl show-ssh [flags] INSTANCE
Examples:
"cmd" format (default): Full ssh command line.
$ limactl show-ssh --format=cmd default
ssh -o IdentityFile="/Users/example/.lima/_config/user" -o User=example -o Hostname=127.0.0.1 -o Port=60022 lima-default
"args" format: Similar to the cmd format but omits "ssh" and the destination address
$ limactl show-ssh --format=args default
-o IdentityFile="/Users/example/.lima/_config/user" -o User=example -o Hostname=127.0.0.1 -o Port=60022
"options" format: ssh option key value pairs
$ limactl show-ssh --format=options default
IdentityFile="/Users/example/.lima/_config/user"
User=example
Hostname=127.0.0.1
Port=60022
"config" format: ~/.ssh/config format
$ limactl show-ssh --format=config default
Host lima-default
IdentityFile "/Users/example/.lima/_config/user "
User example
Hostname 127.0.0.1
Port 60022
Flags:
-f, --format string Format: cmd, args, options, config (default "cmd")
-h, --help help for show-ssh
Global Flags:
--debug debug mode |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AkihiroSuda
-
cmd: limactl show-ssh --format=config default > ./ssh-config works well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
limactl show-ssh --format=config default > ./ssh-config ssh -F ./ssh-config lima-default
More info: