Lines Matching +full:c +full:- +full:22
6 # Copyright (C) 2018 Red Hat, Inc.
35 if key == 'hash' and re.match('[0-9a-f]+', value):
40 p = r"\S+ (key fingerprint) '(md5|sha1|sha256):[0-9a-f]+'"
65 'port': '22'
76 # Test host-key-check options
78 iotests.log("=== Test host-key-check options ===")
81 iotests.log("--- no host key checking --")
90 'port': '22'
92 'host-key-check': {
101 iotests.log("--- known_hosts key checking --")
110 'port': '22'
112 'host-key-check': {
122 'ssh-keyscan 127.0.0.1 2>/dev/null | grep -v "\\^#" | ' +
123 'cut -d" " -f3',
133 'echo %s | base64 -d | md5sum -b | cut -d" " -f1' % key,
137 'echo %s | base64 -d | sha1sum -b | cut -d" " -f1' % key,
141 'echo %s | base64 -d | sha256sum -b | cut -d" " -f1' % key,
149 result = vm.qmp('blockdev-add',
153 'port': '22',
161 vm.qmp('blockdev-del', node_name='node0')
169 iotests.log("--- explicit md5 key checking --")
177 'port': '22'
179 'host-key-check': {
192 'port': '22'
194 'host-key-check': {
205 iotests.log("--- explicit sha1 key checking --")
214 'port': '22'
216 'host-key-check': {
228 'port': '22'
230 'host-key-check': {
241 iotests.log("--- explicit sha256 key checking --")
250 'port': '22'
252 'host-key-check': {
264 'port': '22'
266 'host-key-check': {
289 'port': '22'
291 'host-key-check': {
302 'port': '22'
304 'host-key-check': {