aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_sftpd_SUITE.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2011-02-10 10:14:22 +0100
committerNiclas Eklund <[email protected]>2011-05-19 14:38:16 +0200
commit155763771ba8e581cec43732cf86fa781bbdd773 (patch)
treefa595a91270629f175eddee56aa332ad24f12d7b /lib/ssh/test/ssh_sftpd_SUITE.erl
parentbafd9b83ef0e7b2ca40c43981eeb6fe8229804ea (diff)
downloadotp-155763771ba8e581cec43732cf86fa781bbdd773.tar.gz
otp-155763771ba8e581cec43732cf86fa781bbdd773.tar.bz2
otp-155763771ba8e581cec43732cf86fa781bbdd773.zip
Altering SSH test keys.
Diffstat (limited to 'lib/ssh/test/ssh_sftpd_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_sftpd_SUITE.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/ssh/test/ssh_sftpd_SUITE.erl b/lib/ssh/test/ssh_sftpd_SUITE.erl
index 1afc206148..f5ed668fa6 100644
--- a/lib/ssh/test/ssh_sftpd_SUITE.erl
+++ b/lib/ssh/test/ssh_sftpd_SUITE.erl
@@ -93,16 +93,15 @@ init_per_testcase(TestCase, Config) ->
SysDir = ?config(data_dir, Config),
{ok, Sftpd} =
ssh_sftpd:listen(?SFPD_PORT, [{system_dir, SysDir},
- {user_passwords,[{?USER, ?PASSWD}]}]),
-
- Host = ssh_test_lib:hostname(),
- {ok, Cm} = ssh:connect(Host, ?SFPD_PORT,
+ {user_passwords,[{?USER, ?PASSWD}]}]),
+
+ Cm = ssh_test_lib:connect(?SFPD_PORT,
[{silently_accept_hosts, true},
{user, ?USER}, {password, ?PASSWD}]),
{ok, Channel} =
ssh_connection:session_channel(Cm, ?XFER_WINDOW_SIZE,
?XFER_PACKET_SIZE, ?TIMEOUT),
-
+
success = ssh_connection:subsystem(Cm, Channel, "sftp", ?TIMEOUT),
ProtocolVer = case atom_to_list(TestCase) of