From 4b81483b4dfa48efa740b05ccc67f03a4c975736 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 13 Sep 2021 10:09:26 +0200 Subject: [PATCH] Add some explanation about how to run this test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I748e13db89dc79bbf11f663ce6914513d2912766 Reviewed-by: Alp Öz Reviewed-by: Christian Kandeler --- tests/auto/ssh/tst_ssh.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/auto/ssh/tst_ssh.cpp b/tests/auto/ssh/tst_ssh.cpp index 6f9c0a1ca09..597d035e509 100644 --- a/tests/auto/ssh/tst_ssh.cpp +++ b/tests/auto/ssh/tst_ssh.cpp @@ -48,6 +48,19 @@ #include +/* +In order to run this test properly it requires some setup (example for fedora): +1. Run a server: + systemctl start sshd +2. Create your own ssh key (needed only once). For fedora it needs ecdsa type: + ssh-keygen -t ecdsa +3. Make your public key known to the server (needed only once): + ssh-copy-id -i [full path to your public key] +4. Set the env variables before executing test: + QTC_SSH_TEST_HOST=127.0.0.1 + QTC_SSH_TEST_KEYFILE=[full path to your private key] + QTC_SSH_TEST_USER=[your user name] +*/ using namespace QSsh; static QString getHostFromEnvironment()