func (s *SshConfig) GetAuthMethod() (authMethod []ssh.AuthMethod) {

	if s.SSLKey == "" {
		lo.G.Debug("using password for authn")
		authMethod = []ssh.AuthMethod{
			ssh.Password(s.Password),
		}

	} else {
		lo.G.Debug("using sslkey for authn")
		keySigner, _ := ssh.ParsePrivateKey([]byte(s.SSLKey))

		authMethod = []ssh.AuthMethod{
			ssh.PublicKeys(keySigner),
		}
	}
	return
}
func (s *SshConfig) GetAuthMethod() (authMethod []ssh.AuthMethod) {

	if s.SSLKey == "" {
		lo.G.Debug("using password for authn")
		authMethod = []ssh.AuthMethod{
			ssh.Password(s.Password),
		}

	} else {
		lo.G.Debug("using sslkey for authn")
		keySigner, _ := ssh.ParsePrivateKey([]byte(s.SSLKey))

		authMethod = []ssh.AuthMethod{
			ssh.PublicKeys(keySigner),
		}
	}
	return
}
func ( s * SshConfig ) GetAuthMethod ( ) ( authMethod [ ] ssh . AuthMethod ) { if s . SSLKey == " " { lo . G . Debug ( " " ) authMethod = [ ] ssh . AuthMethod { ssh . Password ( s . Password ) , } } else { lo . G . Debug ( " " ) keySigner , _ := ssh . ParsePrivateKey ( [ ] byte ( s . SSLKey ) ) authMethod = [ ] ssh . AuthMethod { ssh . PublicKeys ( keySigner ) , } } return }
//GetAuthMethod -
GetAuthMethod -