canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.85k stars 650 forks source link

[bug] ssh/scp timeout #3427

Closed edwardsun closed 6 months ago

edwardsun commented 8 months ago

Describe the bug I installed tailscale to connect guest vm with all my other machines

  1. when I use "scp" on guest vm to copy other machines' files to guest vm (docker blueprint), I noticed the scp always hangs after a couple of seconds, even though initially it does transfer data.
  2. The same situation applies when I use "scp" on other machines to connect to guest vm.
  3. When I ssh to guest machine from other machines, the only success moments are when I actively "multipass shell guestmachine" on the host.

I'm wondering if the guest vm can be on automatic hibernation, or there is some settings issue on ssh. (should not be an sshd issue because case 1 does not require guest vm sshd)

Additional info

andrei-toterman commented 8 months ago

Hi, @edwardsun! Can you give more details about how the operations are failing? Do they have any error messages? You mentioned that you can only shell into a vm by running multipass shell. If you want to use ssh directly, you will need to add your own ssh key to the vm, as multipass uses its own private key for shell. Did you do that? I can provide you with instructions if needed.

townsend2010 commented 7 months ago

Hi @edwardsun!

Could you please provide the answers asked here? We well close this issue in approximately one week if we don't hear back from you. Thanks!

townsend2010 commented 6 months ago

Since we've no response to our question, I'm going close. Please feel free to reopen with the requested info or open a new issue. Thanks!