[monitoring-plugins] travis-ci: Use RSA keys for SSH tests

Jan Wagner git at monitoring-plugins.org
Wed Feb 6 08:50:15 CET 2019


 Module: monitoring-plugins
 Branch: master
 Commit: 2dcfbbcad03baf1124644184ec072ac0dba024f7
 Author: Jan Wagner <waja at cyconet.org>
   Date: Mon Feb  4 14:24:29 2019 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=2dcfbbc

travis-ci: Use RSA keys for SSH tests

---

 .travis.yml                   | 4 ++--
 plugins/t/NPTest.cache.travis | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 134d218..946345c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -73,8 +73,8 @@ before_script:
   - make
   - export NPTEST_ACCEPTDEFAULT=1
   - export NPTEST_CACHE="$(pwd)/plugins/t/NPTest.cache.travis"
-  - ssh-keygen -t dsa -N "" -f ~/.ssh/id_dsa
-  - cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
+  - ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
+  - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
   - ssh-keyscan localhost >> ~/.ssh/known_hosts
   - touch ~/.ssh/config
   - sudo rm -f /usr/share/mibs/ietf/SNMPv2-PDU /usr/share/mibs/ietf/IPSEC-SPD-MIB /usr/share/mibs/ietf/IPATM-IPMC-MIB /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
diff --git a/plugins/t/NPTest.cache.travis b/plugins/t/NPTest.cache.travis
index 6ee4505..9b9f805 100644
--- a/plugins/t/NPTest.cache.travis
+++ b/plugins/t/NPTest.cache.travis
@@ -50,5 +50,5 @@
   'NP_SNMP_USER' => '',
   'NP_SSH_CONFIGFILE' => '~/.ssh/config',
   'NP_SSH_HOST' => 'localhost',
-  'NP_SSH_IDENTITY' => '~/.ssh/id_dsa'
+  'NP_SSH_IDENTITY' => '~/.ssh/id_rsa'
 }



More information about the Commits mailing list