You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/driver/vz: Try SSH handshake to check if SSH port is available.
Check the SSH server in a way that complies with the SSH protocol using x/crypto/ssh.
This change fixes#4334 by falling back to usernet port forwarder on failing SSH connections over VSOCK.
- pkg/networks/usernet: Rename entry point from `/extension/wait_port` to `/extension/wait-ssh-server`
Because it changed to an SSH server-specific entry point.
When a client accesses the old entry point, it fails and continues with falling back to the usernet forwarder.
- pkg/sshutil: Add `WaitSSHReady()`
WaitSSHReady waits until the SSH server is ready to accept connections.
The dialContext function is used to create a connection to the SSH server.
The addr, user parameter is used for ssh.ClientConn creation.
The timeoutSeconds parameter specifies the maximum number of seconds to wait.
Signed-off-by: Norio Nomura <[email protected]>
# Conflicts:
# go.mod
0 commit comments