mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
travis-ci: Use RSA keys for SSH tests
This commit is contained in:
parent
2416aaadd8
commit
2dcfbbcad0
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue