mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-25 12:39:50 +02:00
trying to get keyboard-interactive challenge to trigger
This commit is contained in:
parent
0ae4742dd0
commit
33eda54c8b
3 changed files with 20 additions and 1 deletions
|
@ -23,11 +23,12 @@ func TestSSH(t *testing.T) {
|
|||
serverHostKey := newSSHKey(t)
|
||||
|
||||
// ssh client setup
|
||||
var ki scenarios.EmptyKeyboardInteractiveChallenge
|
||||
clientConfig := &ssh.ClientConfig{
|
||||
User: "demo",
|
||||
Auth: []ssh.AuthMethod{
|
||||
ssh.PublicKeys(clientKey),
|
||||
//ssh.KeyboardInteractive()
|
||||
ssh.KeyboardInteractive(ki.Do),
|
||||
},
|
||||
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
|
||||
}
|
||||
|
@ -36,6 +37,7 @@ func TestSSH(t *testing.T) {
|
|||
env := testenv.New(t)
|
||||
|
||||
env.Add(scenarios.SSH(scenarios.SSHConfig{}))
|
||||
env.Add(&ki)
|
||||
|
||||
up := upstreams.SSH(
|
||||
upstreams.WithHostKeys(serverHostKey),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue