Skip to content

Commit

Permalink
Update communicator/config.go
Browse files Browse the repository at this point in the history
Co-authored-by: Wilken Rivera <[email protected]>
  • Loading branch information
lbajolet-hashicorp and Wilken Rivera authored Jan 11, 2023
1 parent f7fbef7 commit 110e0bc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions communicator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,10 @@ type SSH struct {
// `scp` or `sftp` - How to transfer files, Secure copy (default) or SSH
// File Transfer Protocol.
//
// NOTE: for guests using Windows with Win32-OpenSSH v9.1.0.0p1-Beta, scp
// (the default protocol for copying data) returns an error since the MOTW
// cannot be set, and the command ends-up with a non-zero error code, making
// transfers fail in this case. This can be solved by overriding the protocol
// with SFTP instead.
// **NOTE**: Guests using Windows with Win32-OpenSSH v9.1.0.0p1-Beta, scp
// (the default protocol for copying data) returns a a non-zero error code since the MOTW
// cannot be set, which cause any file transfer to fail. As a workaround you can override the transfer protocol
// with SFTP instead `ssh_file_transfer_protocol = "sftp"`.
SSHFileTransferMethod string `mapstructure:"ssh_file_transfer_method"`
// A SOCKS proxy host to use for SSH connection
SSHProxyHost string `mapstructure:"ssh_proxy_host"`
Expand Down

0 comments on commit 110e0bc

Please sign in to comment.