MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / canBeUsedForSSH

Function canBeUsedForSSH

pkg/machinescommon/ssh_common.go:204–207  ·  view source on GitHub ↗
(account accounts.IAccount)

Source from the content-addressed store, hash-verified

202}
203
204func canBeUsedForSSH(account accounts.IAccount) bool {
205 accountType := account.GetAccountType()
206 return accountType == accounts.AccountTypeSSHKeyPair || accountType == accounts.AccountTypeUsernamePassword
207}
208
209func GetSshAccount(opts *SshCommonOptions, flags *SshCommonFlags) (accounts.IAccount, error) {
210 idOrName := flags.Account.Value

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected