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.
Replies: 3 comments
-
| limactl show-ssh --format=config default > ./ssh-config
ssh -F ./ssh-config lima-defaultMore 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.
-
| cmd: limactl show-ssh --format=config default > ./ssh-config works well | 
Beta Was this translation helpful? Give feedback.
-
| 
 Line 89 in 7685028 | 
Beta Was this translation helpful? Give feedback.
limactl show-ssh --format=config default > ./ssh-config ssh -F ./ssh-config lima-defaultMore info: