Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 98891ae

Browse files
committed
Merge pull request hashicorp#2684 from hashicorp/f-print-bastion-host-details
communicator/ssh: print ssh bastion host details to output
2 parents 7f908e0 + 448a6a1 commit 98891ae

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

communicator/ssh/communicator.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,21 @@ func (c *Communicator) Connect(o terraform.UIOutput) (err error) {
9696
c.connInfo.KeyFile != "",
9797
c.connInfo.Agent,
9898
))
99+
100+
if c.connInfo.BastionHost != "" {
101+
o.Output(fmt.Sprintf(
102+
"Using configured bastion host..."+
103+
" Host: %s\n"+
104+
" User: %s\n"+
105+
" Password: %t\n"+
106+
" Private key: %t\n"+
107+
" SSH Agent: %t",
108+
c.connInfo.BastionHost, c.connInfo.BastionUser,
109+
c.connInfo.BastionPassword != "",
110+
c.connInfo.BastionKeyFile != "",
111+
c.connInfo.Agent,
112+
))
113+
}
99114
}
100115

101116
log.Printf("connecting to TCP connection for SSH")

0 commit comments

Comments
 (0)