Skip to content

how do i connect to LIMA using SSH? #1221

Answered by AkihiroSuda
gilaroni asked this question in Q&A
Discussion options

You must be logged in to vote
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 optio…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AkihiroSuda
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants