abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
18.52k stars 375 forks source link

Bad SSH2 cipher spec #783

Open eriksandall opened 1 year ago

eriksandall commented 1 year ago

Description

Colima appears to be working fine, but Local (https://localwp.com/) cannot push or pull production files and shows this error:

{"thread":"main","class":"RsyncService","message":"/Users/example/.colima/ssh_config line 13: Bad SSH2 cipher spec '^aes128-gcm@openssh.com,aes256-gcm@openssh.com'.\r\n","level":"warn","timestamp":"2023-08-21T17:32:34.722Z"}

So, it looks like there's an error with the Colima SSH config? Due to this error, Local (and possibly other apps) cannot function on a system where Colima is installed.

Version

Colima Version: 0.5.5 Lima Version: 0.16.0 Qemu Version: 8.0.3

Operating System

Output of colima status

INFO[0000] colima is running using QEMU                 
INFO[0000] arch: x86_64                                 
INFO[0000] runtime: docker                              
INFO[0000] mountType: sshfs                             
INFO[0000] socket: unix:///Users/eriksandall/.colima/default/docker.sock 

Reproduction Steps

  1. On a computer with both Colima and Local installed, launch Local.
  2. Push or pull one of the sites in Local (this process will fail).
  3. In the Local error log (local-lightning-verbose.log), you'll find the error referenced above.

Expected behaviour

No response

Additional context

No response

AkihiroSuda commented 1 year ago
eriksandall commented 1 year ago

limactl works. I'm using OpenSSH.

% limactl start
INFO[0000] Using the existing instance "default"        
INFO[0000] Hint: To create another instance, run the following command: limactl start --name=NAME template://default 
INFO[0000] Attempting to download the nerdctl archive    arch=aarch64 digest="sha256:589dabd962d936b29fd377dcddbb49c07d1c4c27dd4b402bc4b6b20287fe9c37" location="https://github.com/containerd/nerdctl/releases/download/v1.4.0/nerdctl-full-1.4.0-linux-arm64.tar.gz"
INFO[0000] Using cache "/Users/eriksandall/Library/Caches/lima/download/by-url-sha256/8704652b907393aea54c8d98b48efa0fe9bef4d120fbbf8799bb5264631da634/data" 
INFO[0000] [hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/eriksandall/.lima/default/serial.log") 
INFO[0000] SSH Local Port: 60022                        
INFO[0000] [hostagent] Waiting for the essential requirement 1 of 5: "ssh" 
INFO[0017] [hostagent] Waiting for the essential requirement 1 of 5: "ssh" 
INFO[0017] [hostagent] The essential requirement 1 of 5 is satisfied 
INFO[0017] [hostagent] Waiting for the essential requirement 2 of 5: "user session is ready for ssh" 
INFO[0018] [hostagent] The essential requirement 2 of 5 is satisfied 
INFO[0018] [hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed" 
INFO[0018] [hostagent] The essential requirement 3 of 5 is satisfied 
INFO[0018] [hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf (/etc/fuse3.conf) to contain \"user_allow_other\"" 
INFO[0018] [hostagent] The essential requirement 4 of 5 is satisfied 
INFO[0018] [hostagent] Waiting for the essential requirement 5 of 5: "the guest agent to be running" 
INFO[0018] [hostagent] The essential requirement 5 of 5 is satisfied 
INFO[0018] [hostagent] Mounting "/Users/eriksandall" on "/Users/eriksandall" 
INFO[0018] [hostagent] Mounting "/tmp/lima" on "/tmp/lima" 
INFO[0018] [hostagent] Waiting for the optional requirement 1 of 2: "systemd must be available" 
INFO[0018] [hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/Users/eriksandall/.lima/default/ga.sock" (host) 
INFO[0018] [hostagent] The optional requirement 1 of 2 is satisfied 
INFO[0018] [hostagent] Waiting for the optional requirement 2 of 2: "containerd binaries to be installed" 
INFO[0018] [hostagent] Not forwarding TCP 127.0.0.54:53 
INFO[0018] [hostagent] Not forwarding TCP 127.0.0.53:53 
INFO[0018] [hostagent] Not forwarding TCP [::]:22       
INFO[0018] [hostagent] The optional requirement 2 of 2 is satisfied 
INFO[0018] [hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished" 
INFO[0018] [hostagent] The final requirement 1 of 1 is satisfied 
INFO[0018] READY. Run `lima` to open the shell.  
% which ssh
/usr/bin/ssh
% ssh -V
OpenSSH_9.0p1, LibreSSL 3.3.6