]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qemu-iotests/207.out
ssh: switch from libssh2 to libssh
[mirror_qemu.git] / tests / qemu-iotests / 207.out
CommitLineData
56ea7450
KW
1=== Successful image creation (defaults) ===
2
8a57a4be 3{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 4194304}}}
e21b5f34
HR
4{"return": {}}
5{"execute": "job-dismiss", "arguments": {"id": "job0"}}
6{"return": {}}
56ea7450 7
b8c1f901 8image: TEST_IMG
56ea7450 9file format: IMGFMT
de38b500 10virtual size: 4 MiB (4194304 bytes)
56ea7450 11
00af1935
KW
12
13image: TEST_IMG
56ea7450 14file format: IMGFMT
de38b500 15virtual size: 4 MiB (4194304 bytes)
56ea7450
KW
16
17=== Test host-key-check options ===
18
8a57a4be 19{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"mode": "none"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 8388608}}}
e21b5f34
HR
20{"return": {}}
21{"execute": "job-dismiss", "arguments": {"id": "job0"}}
22{"return": {}}
56ea7450 23
b8c1f901 24image: TEST_IMG
56ea7450 25file format: IMGFMT
de38b500 26virtual size: 8 MiB (8388608 bytes)
00af1935 27
8a57a4be 28{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"mode": "known_hosts"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 4194304}}}
e21b5f34
HR
29{"return": {}}
30{"execute": "job-dismiss", "arguments": {"id": "job0"}}
31{"return": {}}
00af1935 32
b8c1f901 33image: TEST_IMG
56ea7450 34file format: IMGFMT
de38b500 35virtual size: 4 MiB (4194304 bytes)
00af1935 36
8a57a4be 37{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "wrong", "mode": "hash", "type": "md5"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 2097152}}}
e21b5f34 38{"return": {}}
00af1935 39Job failed: remote host key does not match host_key_check 'wrong'
e21b5f34
HR
40{"execute": "job-dismiss", "arguments": {"id": "job0"}}
41{"return": {}}
00af1935 42
8a57a4be 43{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "HASH", "mode": "hash", "type": "md5"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 8388608}}}
e21b5f34
HR
44{"return": {}}
45{"execute": "job-dismiss", "arguments": {"id": "job0"}}
46{"return": {}}
00af1935 47
b8c1f901 48image: TEST_IMG
56ea7450 49file format: IMGFMT
de38b500 50virtual size: 8 MiB (8388608 bytes)
00af1935 51
8a57a4be 52{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "wrong", "mode": "hash", "type": "sha1"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 2097152}}}
e21b5f34 53{"return": {}}
00af1935 54Job failed: remote host key does not match host_key_check 'wrong'
e21b5f34
HR
55{"execute": "job-dismiss", "arguments": {"id": "job0"}}
56{"return": {}}
00af1935 57
8a57a4be 58{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "HASH", "mode": "hash", "type": "sha1"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 4194304}}}
e21b5f34
HR
59{"return": {}}
60{"execute": "job-dismiss", "arguments": {"id": "job0"}}
61{"return": {}}
00af1935 62
b8c1f901 63image: TEST_IMG
56ea7450 64file format: IMGFMT
de38b500 65virtual size: 4 MiB (4194304 bytes)
56ea7450
KW
66
67=== Invalid path and user ===
68
8a57a4be 69{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"mode": "none"}, "path": "/this/is/not/an/existing/path", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 4194304}}}
e21b5f34 70{"return": {}}
b10d49d7 71Job failed: failed to open remote file '/this/is/not/an/existing/path': SFTP server: No such file (libssh error code: 1, sftp error code: 2)
e21b5f34
HR
72{"execute": "job-dismiss", "arguments": {"id": "job0"}}
73{"return": {}}
00af1935 74
8a57a4be 75{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"mode": "none"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}, "user": "invalid user"}, "size": 4194304}}}
e21b5f34 76{"return": {}}
00af1935 77Job failed: failed to authenticate using publickey authentication and the identities held by your ssh-agent
e21b5f34
HR
78{"execute": "job-dismiss", "arguments": {"id": "job0"}}
79{"return": {}}
56ea7450 80