Skip to content

Conversation

@norio-nomura
Copy link
Contributor

@norio-nomura norio-nomura commented Oct 22, 2025

Split from #4175

affected functions:

  • Copy to host
  • Reverse SSHFS
  • SSH port forwarding
    pkg/hostagent: Add HostAgent.sshAddressPort()

Following commits are also needed additionally to fix #4240

  • pkg/hostagent: Fix setupMount() to avoid changing HostAgent.sshConfig
  • pkg/sshutil: Fix SSHOptsRemovingControlPath() to avoid changing the original opts

…r than "127.0.0.1"

Split from lima-vm#4175
Fixes lima-vm#4240

affected functions:
- Copy to host
- Reverse SSHFS
- SSH port forwarding

Signed-off-by: Norio Nomura <norio.nomura@gmail.com>

pkg/hostagent: Add `HostAgent.sshAddressPort()`

Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
@norio-nomura
Copy link
Contributor Author

temporary merged #4238 into this to checking CI.

…fig`

Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
… original `opts`

Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
@AkihiroSuda AkihiroSuda added this to the v2.0.0 milestone Oct 22, 2025
@norio-nomura
Copy link
Contributor Author

Now port forwarding works on Windows with LIMA_SSH_PORT_FORWARDER = 'true'.
By the way, it seems that "127.0.0.1" is used in sshAddress, and it also seems to be working with it. I don't understand why instSSHAddress was required.

@norio-nomura
Copy link
Contributor Author

norio-nomura commented Oct 23, 2025

temporary merged #4238 into this to checking CI.

Dropped the commit merging #4238.

@norio-nomura norio-nomura marked this pull request as ready for review October 23, 2025 03:12
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jandubois jandubois merged commit 638f426 into lima-vm:master Oct 23, 2025
63 of 64 checks passed
@norio-nomura norio-nomura deleted the fix-4240 branch October 24, 2025 03:52
@norio-nomura
Copy link
Contributor Author

Thanks! 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSH port forwarder does not seem to work at all on Windows

3 participants