aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-01-26 14:45:35 +0100
committerHans Nilsson <[email protected]>2018-01-26 14:52:48 +0100
commit885f08a59115d0fe865149ec08e55f5073042d3b (patch)
treee2b673c89ec2fd906d7c840ed29b037d4aba4889 /lib
parent800c581bef51ef70cb6fe31a866467a80ffd3f75 (diff)
downloadotp-885f08a59115d0fe865149ec08e55f5073042d3b.tar.gz
otp-885f08a59115d0fe865149ec08e55f5073042d3b.tar.bz2
otp-885f08a59115d0fe865149ec08e55f5073042d3b.zip
ssh: Can use DropBear SSH dockers
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh/test/ssh_compat_SUITE.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_compat_SUITE.erl b/lib/ssh/test/ssh_compat_SUITE.erl
index 7694cbd37e..19bb17524e 100644
--- a/lib/ssh/test/ssh_compat_SUITE.erl
+++ b/lib/ssh/test/ssh_compat_SUITE.erl
@@ -137,6 +137,8 @@ init_per_group(G, Config0) ->
%% is a bit hard. It is possible with ssh_protocol_SUITE
%% techniques, but it can wait.
case Vssh of
+ "dropbear" ++ _ ->
+ [password, publickey];
_ ->
[password, 'keyboard-interactive', publickey]
end,
@@ -451,6 +453,9 @@ exec_from_docker(C, DestIP, DestPort, Command, Expects, ExtraSshArg, Config) whe
lists:concat(
["sshpass -p ",?PASSWD," "
| case proplists:get_value(ssh_version,Config) of
+ "dropbear" ++ _ ->
+ ["dbclient -y -y -p ",DestPort," ",ExtraSshArg," ",iptoa(DestIP)," "];
+
_ -> %% OpenSSH or compatible
["/buildroot/ssh/bin/ssh -o 'CheckHostIP=no' -o 'StrictHostKeyChecking=no' ",
ExtraSshArg," -p ",DestPort," ",iptoa(DestIP)," "]