alohamora

osp-12

Apr 18th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.68 KB | None | 0 0
  1. ===============================
  2. Attempt-1 With created Key Pair
  3. ===============================
  4.  
  5.  
  6. (overcloud) [stack@refarch-r220-04 ~]$ openstack floating ip list
  7. +--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
  8. | ID | Floating IP Address | Fixed IP Address | Port | Floating Network | Project |
  9. +--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
  10. | 02d989aa-eb8a-4df4-bdc0-978626200779 | 172.21.0.24 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  11. | 2c92a28c-9ef6-4215-80b2-84d6fc5821c5 | 172.21.0.11 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  12. | 760b5685-f85b-4b7a-96c0-bae868eccd70 | 172.21.0.21 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  13. | fa1b6e74-c2c6-4d49-9a95-555f3448cc44 | 172.21.0.12 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  14. +--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
  15. (overcloud) [stack@refarch-r220-04 ~]$ openstack image list
  16. +--------------------------------------+---------------------------------+--------+
  17. | ID | Name | Status |
  18. +--------------------------------------+---------------------------------+--------+
  19. | 27f449ef-3138-428b-839d-e79ba8b4c7e7 | Fedora-Cloud-Base-27-1.6.x86_64 | active |
  20. | 9a3f7a32-4967-4c2e-b60b-434c08405704 | cirros-0.4.0-x86_64 | active |
  21. | de27885d-634c-470e-ab46-92df361a3a41 | rhel-server-7.5-x86_64-kvm | active |
  22. | c29dd802-8632-482a-86cc-e712b28a8972 | ubuntu | active |
  23. +--------------------------------------+---------------------------------+--------+
  24. (overcloud) [stack@refarch-r220-04 ~]$
  25. (overcloud) [stack@refarch-r220-04 ~]$ openstack keypair list
  26.  
  27. (overcloud) [stack@refarch-r220-04 ~]$
  28. (overcloud) [stack@refarch-r220-04 ~]$
  29. (overcloud) [stack@refarch-r220-04 ~]$ openstack keypair create uc-key > uc-key.pem ; chmod 600 uc-key.pem
  30.  
  31. (overcloud) [stack@refarch-r220-04 ~]$
  32. (overcloud) [stack@refarch-r220-04 ~]$ openstack keypair list
  33. +--------+-------------------------------------------------+
  34. | Name | Fingerprint |
  35. +--------+-------------------------------------------------+
  36. | uc-key | 42:8b:b0:d9:fb:b8:b2:79:4c:02:f4:67:54:c4:29:7c |
  37. +--------+-------------------------------------------------+
  38. (overcloud) [stack@refarch-r220-04 ~]$
  39.  
  40. (overcloud) [stack@refarch-r220-04 ~]$ openstack flavor list
  41. +--------------------------------------+------+------+------+-----------+-------+-----------+
  42. | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
  43. +--------------------------------------+------+------+------+-----------+-------+-----------+
  44. | b9abc9e7-0441-43f2-b3ba-bbee346ebb72 | tiny | 1024 | 10 | 0 | 1 | True |
  45. +--------------------------------------+------+------+------+-----------+-------+-----------+
  46. (overcloud) [stack@refarch-r220-04 ~]$
  47.  
  48. (overcloud) [stack@refarch-r220-04 ~]$ openstack server list
  49.  
  50. (overcloud) [stack@refarch-r220-04 ~]$ nova list
  51. +----+------+--------+------------+-------------+----------+
  52. | ID | Name | Status | Task State | Power State | Networks |
  53. +----+------+--------+------------+-------------+----------+
  54. +----+------+--------+------------+-------------+----------+
  55. (overcloud) [stack@refarch-r220-04 ~]$
  56.  
  57. (overcloud) [stack@refarch-r220-04 ~]$ openstack server create --image cirros-0.4.0-x86_64 --flavor tiny --key-name uc-key --nic net-id=7c7b68d6-b2d9-46ce-a4db-5c6f9fc4de38 instance-1
  58. +-------------------------------------+------------------------------------------------------------+
  59. | Field | Value |
  60. +-------------------------------------+------------------------------------------------------------+
  61. | OS-DCF:diskConfig | MANUAL |
  62. | OS-EXT-AZ:availability_zone | |
  63. | OS-EXT-SRV-ATTR:host | None |
  64. | OS-EXT-SRV-ATTR:hypervisor_hostname | None |
  65. | OS-EXT-SRV-ATTR:instance_name | |
  66. | OS-EXT-STS:power_state | NOSTATE |
  67. | OS-EXT-STS:task_state | scheduling |
  68. | OS-EXT-STS:vm_state | building |
  69. | OS-SRV-USG:launched_at | None |
  70. | OS-SRV-USG:terminated_at | None |
  71. | accessIPv4 | |
  72. | accessIPv6 | |
  73. | addresses | |
  74. | adminPass | 55awxFiFFYhh |
  75. | config_drive | |
  76. | created | 2018-04-18T12:14:20Z |
  77. | flavor | tiny (b9abc9e7-0441-43f2-b3ba-bbee346ebb72) |
  78. | hostId | |
  79. | id | 6137e891-1d5b-40fc-8398-852cf0a949ef |
  80. | image | cirros-0.4.0-x86_64 (9a3f7a32-4967-4c2e-b60b-434c08405704) |
  81. | key_name | uc-key |
  82. | name | instance-1 |
  83. | progress | 0 |
  84. | project_id | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  85. | properties | |
  86. | security_groups | name='default' |
  87. | status | BUILD |
  88. | updated | 2018-04-18T12:14:20Z |
  89. | user_id | a0b315de2ebf4350882df1601dcecd63 |
  90. | volumes_attached | |
  91. +-------------------------------------+------------------------------------------------------------+
  92. (overcloud) [stack@refarch-r220-04 ~]$
  93.  
  94. (overcloud) [stack@refarch-r220-04 ~]$ openstack server list
  95. +--------------------------------------+------------+--------+-----------------------------+---------------------+--------+
  96. | ID | Name | Status | Networks | Image | Flavor |
  97. +--------------------------------------+------------+--------+-----------------------------+---------------------+--------+
  98. | 6137e891-1d5b-40fc-8398-852cf0a949ef | instance-1 | ACTIVE | private_network=172.16.66.8 | cirros-0.4.0-x86_64 | tiny |
  99. +--------------------------------------+------------+--------+-----------------------------+---------------------+--------+
  100. (overcloud) [stack@refarch-r220-04 ~]$
  101.  
  102. (overcloud) [stack@refarch-r220-04 ~]$ openstack floating ip list
  103. +--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
  104. | ID | Floating IP Address | Fixed IP Address | Port | Floating Network | Project |
  105. +--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
  106. | 02d989aa-eb8a-4df4-bdc0-978626200779 | 172.21.0.24 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  107. | 2c92a28c-9ef6-4215-80b2-84d6fc5821c5 | 172.21.0.11 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  108. | 760b5685-f85b-4b7a-96c0-bae868eccd70 | 172.21.0.21 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  109. | fa1b6e74-c2c6-4d49-9a95-555f3448cc44 | 172.21.0.12 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  110. +--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
  111. (overcloud) [stack@refarch-r220-04 ~]$
  112. (overcloud) [stack@refarch-r220-04 ~]$ openstack server add floating ip instance-1 172.21.0.11
  113. (overcloud) [stack@refarch-r220-04 ~]$
  114. (overcloud) [stack@refarch-r220-04 ~]$ openstack server list
  115. +--------------------------------------+------------+--------+------------------------------------------+---------------------+--------+
  116. | ID | Name | Status | Networks | Image | Flavor |
  117. +--------------------------------------+------------+--------+------------------------------------------+---------------------+--------+
  118. | 6137e891-1d5b-40fc-8398-852cf0a949ef | instance-1 | ACTIVE | private_network=172.16.66.8, 172.21.0.11 | cirros-0.4.0-x86_64 | tiny |
  119. +--------------------------------------+------------+--------+------------------------------------------+---------------------+--------+
  120. (overcloud) [stack@refarch-r220-04 ~]$
  121.  
  122. (overcloud) [stack@refarch-r220-04 ~]$ ping 172.21.0.11
  123. PING 172.21.0.11 (172.21.0.11) 56(84) bytes of data.
  124. 64 bytes from 172.21.0.11: icmp_seq=1 ttl=64 time=0.356 ms
  125. 64 bytes from 172.21.0.11: icmp_seq=2 ttl=64 time=0.289 ms
  126. 64 bytes from 172.21.0.11: icmp_seq=3 ttl=64 time=0.239 ms
  127. 64 bytes from 172.21.0.11: icmp_seq=4 ttl=64 time=0.268 ms
  128. ^C^C
  129. --- 172.21.0.11 ping statistics ---
  130. 4 packets transmitted, 4 received, 0% packet loss, time 3000ms
  131. rtt min/avg/max/mdev = 0.239/0.288/0.356/0.043 ms
  132. (overcloud) [stack@refarch-r220-04 ~]$
  133.  
  134. (overcloud) [stack@refarch-r220-04 ~]$ nc -v 172.21.0.11 22
  135. Ncat: Version 6.40 ( http://nmap.org/ncat )
  136. Ncat: Connected to 172.21.0.11:22.
  137. SSH-2.0-OpenSSH_7.4
  138.  
  139. Protocol mismatch.
  140.  
  141. ^C
  142. (overcloud) [stack@refarch-r220-04 ~]$ ^C
  143. (overcloud) [stack@refarch-r220-04 ~]$ ssh -i uc-key.pem cirros@172.21.0.11
  144. The authenticity of host '172.21.0.11 (172.21.0.11)' can't be established.
  145. ECDSA key fingerprint is SHA256:FZY8NWZ1IRqYxoSJaTgWGUUqY3BVCNllOciEKOEW/HA.
  146. ECDSA key fingerprint is MD5:35:9b:79:2c:6d:59:bb:c0:1f:45:2b:b1:42:eb:3f:44.
  147. Are you sure you want to continue connecting (yes/no)? yes
  148. Warning: Permanently added '172.21.0.11' (ECDSA) to the list of known hosts.
  149. cirros@172.21.0.11's password:
  150.  
  151. (overcloud) [stack@refarch-r220-04 ~]$
  152. (overcloud) [stack@refarch-r220-04 ~]$
  153. (overcloud) [stack@refarch-r220-04 ~]$ ssh -v -i uc-key.pem cirros@172.21.0.11
  154. OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
  155. debug1: Reading configuration data /etc/ssh/ssh_config
  156. debug1: /etc/ssh/ssh_config line 58: Applying options for *
  157. debug1: Connecting to 172.21.0.11 [172.21.0.11] port 22.
  158. debug1: Connection established.
  159. debug1: key_load_public: No such file or directory
  160. debug1: identity file uc-key.pem type -1
  161. debug1: key_load_public: No such file or directory
  162. debug1: identity file uc-key.pem-cert type -1
  163. debug1: Enabling compatibility mode for protocol 2.0
  164. debug1: Local version string SSH-2.0-OpenSSH_7.4
  165. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
  166. debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
  167. debug1: Authenticating to 172.21.0.11:22 as 'cirros'
  168. debug1: SSH2_MSG_KEXINIT sent
  169. debug1: SSH2_MSG_KEXINIT received
  170. debug1: kex: algorithm: curve25519-sha256
  171. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  172. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  173. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  174. debug1: kex: curve25519-sha256 need=64 dh_need=64
  175. debug1: kex: curve25519-sha256 need=64 dh_need=64
  176. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  177. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:FZY8NWZ1IRqYxoSJaTgWGUUqY3BVCNllOciEKOEW/HA
  178. debug1: Host '172.21.0.11' is known and matches the ECDSA host key.
  179. debug1: Found key in /home/stack/.ssh/known_hosts:9
  180. debug1: rekey after 134217728 blocks
  181. debug1: SSH2_MSG_NEWKEYS sent
  182. debug1: expecting SSH2_MSG_NEWKEYS
  183. debug1: SSH2_MSG_NEWKEYS received
  184. debug1: rekey after 134217728 blocks
  185. debug1: SSH2_MSG_EXT_INFO received
  186. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  187. debug1: SSH2_MSG_SERVICE_ACCEPT received
  188. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  189. debug1: Next authentication method: gssapi-keyex
  190. debug1: No valid Key exchange context
  191. debug1: Next authentication method: gssapi-with-mic
  192. debug1: Unspecified GSS failure. Minor code may provide more information
  193. No Kerberos credentials available (default cache: KEYRING:persistent:1000)
  194.  
  195. debug1: Unspecified GSS failure. Minor code may provide more information
  196. No Kerberos credentials available (default cache: KEYRING:persistent:1000)
  197.  
  198. debug1: Next authentication method: publickey
  199. debug1: Trying private key: uc-key.pem
  200. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  201. debug1: Next authentication method: password
  202. cirros@172.21.0.11's password:
  203.  
  204.  
  205.  
  206. ==============================================================
  207. Please seee cirros-key Image File attached in the email
  208. ==============================================================
  209.  
  210.  
  211.  
  212.  
  213. ===============================
  214. Attempt-2 With Imported Key Pair
  215. ===============================
  216.  
  217.  
  218. (overcloud) [stack@refarch-r220-04 ~]$ mkdir temp
  219. (overcloud) [stack@refarch-r220-04 ~]$
  220. (overcloud) [stack@refarch-r220-04 ~]$
  221. (overcloud) [stack@refarch-r220-04 ~]$ cd temp
  222. (overcloud) [stack@refarch-r220-04 temp]$
  223. (overcloud) [stack@refarch-r220-04 temp]$
  224. (overcloud) [stack@refarch-r220-04 temp]$ ssh-keygen -t rsa -f cloud.key
  225. Generating public/private rsa key pair.
  226. Enter passphrase (empty for no passphrase):
  227. Enter same passphrase again:
  228. Your identification has been saved in cloud.key.
  229. Your public key has been saved in cloud.key.pub.
  230. The key fingerprint is:
  231. SHA256:s5qVykviIvY0Kn5hG+NboovHMeYhIb2C34yiC3yKaKM stack@refarch-r220-04.front.sepia.ceph.com
  232. The key's randomart image is:
  233. +---[RSA 2048]----+
  234. | |
  235. | |
  236. | . |
  237. |o . |
  238. |o. . S |
  239. |= *= + |
  240. |.Oo%*.. + |
  241. |O+&=*+ = |
  242. |E@=+o *. |
  243. +----[SHA256]-----+
  244. (overcloud) [stack@refarch-r220-04 temp]$
  245. (overcloud) [stack@refarch-r220-04 temp]$ ls -la
  246. total 12
  247. drwxrwxr-x. 2 stack stack 44 Apr 18 08:26 .
  248. drwx------. 18 stack stack 4096 Apr 18 08:25 ..
  249. -rw-------. 1 stack stack 1679 Apr 18 08:26 cloud.key
  250. -rw-r--r--. 1 stack stack 424 Apr 18 08:26 cloud.key.pub
  251. (overcloud) [stack@refarch-r220-04 temp]$
  252. (overcloud) [stack@refarch-r220-04 temp]$ openstack keypair create --public-key cloud.key.pub cloud-key
  253. +-------------+-------------------------------------------------+
  254. | Field | Value |
  255. +-------------+-------------------------------------------------+
  256. | fingerprint | 78:c3:ea:77:f0:21:30:8f:dd:ee:a8:f1:79:86:a0:5b |
  257. | name | cloud-key |
  258. | user_id | a0b315de2ebf4350882df1601dcecd63 |
  259. +-------------+-------------------------------------------------+
  260. (overcloud) [stack@refarch-r220-04 temp]$ openstack keypair list
  261. +-----------+-------------------------------------------------+
  262. | Name | Fingerprint |
  263. +-----------+-------------------------------------------------+
  264. | cloud-key | 78:c3:ea:77:f0:21:30:8f:dd:ee:a8:f1:79:86:a0:5b |
  265. | uc-key | 42:8b:b0:d9:fb:b8:b2:79:4c:02:f4:67:54:c4:29:7c |
  266. +-----------+-------------------------------------------------+
  267. (overcloud) [stack@refarch-r220-04 temp]$
  268. (overcloud) [stack@refarch-r220-04 temp]$ cat cloud.key.pub
  269. ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Bv8BTUOc++bBo301wf3x1mGHrc4wwNGXSg0UrLnpL/aUfmmJfFoy24DLZgmnFlI2z7qOG930aaSgUiEHWgAV7CJJUg8rQdKw1YaUAqqjuJseHR9OSXQO4x710QHefChbKLjdqY/dY02fvaUQfItmJVp1b6VKWIrdk3sj9VdlqPVvgYjnJHjJ3skIl5CJDzYXABsZsWChnL5aJ9hc09OHOpw8WL8U6RkVnEUFhoACZwaED607r9PEva5hWi5FMDZVK6eRD3SOFa4SUsbHPQk8UpM1Dwy+KPPR+tWnJW2ThojbgzcFIogXY8GRgWdQ2oT9kq66TZ76eL1FEZtE12QF stack@refarch-r220-04.front.sepia.ceph.com
  270. (overcloud) [stack@refarch-r220-04 temp]$
  271.  
  272. (overcloud) [stack@refarch-r220-04 temp]$ openstack server list
  273. +--------------------------------------+------------+--------+------------------------------------------+---------------------+--------+
  274. | ID | Name | Status | Networks | Image | Flavor |
  275. +--------------------------------------+------------+--------+------------------------------------------+---------------------+--------+
  276. | 117de48d-6593-412d-becc-fce63872b697 | instance-2 | ACTIVE | private_network=172.16.66.12 | cirros-0.4.0-x86_64 | tiny |
  277. | 6137e891-1d5b-40fc-8398-852cf0a949ef | instance-1 | ACTIVE | private_network=172.16.66.8, 172.21.0.11 | cirros-0.4.0-x86_64 | tiny |
  278. +--------------------------------------+------------+--------+------------------------------------------+---------------------+--------+
  279. (overcloud) [stack@refarch-r220-04 temp]$
  280. (overcloud) [stack@refarch-r220-04 temp]$ openstack floating ip list
  281. +--------------------------------------+---------------------+------------------+--------------------------------------+--------------------------------------+----------------------------------+
  282. | ID | Floating IP Address | Fixed IP Address | Port | Floating Network | Project |
  283. +--------------------------------------+---------------------+------------------+--------------------------------------+--------------------------------------+----------------------------------+
  284. | 02d989aa-eb8a-4df4-bdc0-978626200779 | 172.21.0.24 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  285. | 2c92a28c-9ef6-4215-80b2-84d6fc5821c5 | 172.21.0.11 | 172.16.66.8 | 6239a123-62a7-4167-9e4d-7935a377cc3f | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  286. | 760b5685-f85b-4b7a-96c0-bae868eccd70 | 172.21.0.21 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  287. | fa1b6e74-c2c6-4d49-9a95-555f3448cc44 | 172.21.0.12 | None | None | cd2dbd7e-eacc-410a-9a67-6f741b05a564 | 5ab3a94b03ae4b2ba257a3f6ccc52b84 |
  288. +--------------------------------------+---------------------+------------------+--------------------------------------+--------------------------------------+----------------------------------+
  289.  
  290. (overcloud) [stack@refarch-r220-04 temp]$ openstack server add floating ip instance-2 172.21.0.12
  291. (overcloud) [stack@refarch-r220-04 temp]$ openstack server list
  292. +--------------------------------------+------------+--------+-------------------------------------------+---------------------+--------+
  293. | ID | Name | Status | Networks | Image | Flavor |
  294. +--------------------------------------+------------+--------+-------------------------------------------+---------------------+--------+
  295. | 117de48d-6593-412d-becc-fce63872b697 | instance-2 | ACTIVE | private_network=172.16.66.12, 172.21.0.12 | cirros-0.4.0-x86_64 | tiny |
  296. | 6137e891-1d5b-40fc-8398-852cf0a949ef | instance-1 | ACTIVE | private_network=172.16.66.8, 172.21.0.11 | cirros-0.4.0-x86_64 | tiny |
  297. +--------------------------------------+------------+--------+-------------------------------------------+---------------------+--------+
  298. (overcloud) [stack@refarch-r220-04 temp]$
  299. (overcloud) [stack@refarch-r220-04 temp]$ ping 172.21.0.12
  300. PING 172.21.0.12 (172.21.0.12) 56(84) bytes of data.
  301. 64 bytes from 172.21.0.12: icmp_seq=1 ttl=64 time=0.293 ms
  302. 64 bytes from 172.21.0.12: icmp_seq=2 ttl=64 time=0.131 ms
  303. ^C
  304. --- 172.21.0.12 ping statistics ---
  305. 2 packets transmitted, 2 received, 0% packet loss, time 999ms
  306. rtt min/avg/max/mdev = 0.131/0.212/0.293/0.081 ms
  307. (overcloud) [stack@refarch-r220-04 temp]$ ^C
  308. (overcloud) [stack@refarch-r220-04 temp]$
  309. (overcloud) [stack@refarch-r220-04 temp]$
  310. (overcloud) [stack@refarch-r220-04 temp]$ nc -v 172.21.0.12 22
  311. Ncat: Version 6.40 ( http://nmap.org/ncat )
  312. Ncat: Connected to 172.21.0.12:22.
  313. SSH-2.0-OpenSSH_7.4
  314. ^C^C
  315.  
  316. (overcloud) [stack@refarch-r220-04 temp]$
  317. (overcloud) [stack@refarch-r220-04 temp]$ ssh -i cloud.key cirros@172.21.0.12 -v
  318. OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
  319. debug1: Reading configuration data /etc/ssh/ssh_config
  320. debug1: /etc/ssh/ssh_config line 58: Applying options for *
  321. debug1: Connecting to 172.21.0.12 [172.21.0.12] port 22.
  322. debug1: Connection established.
  323. debug1: identity file cloud.key type 1
  324. debug1: key_load_public: No such file or directory
  325. debug1: identity file cloud.key-cert type -1
  326. debug1: Enabling compatibility mode for protocol 2.0
  327. debug1: Local version string SSH-2.0-OpenSSH_7.4
  328. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
  329. debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
  330. debug1: Authenticating to 172.21.0.12:22 as 'cirros'
  331. debug1: SSH2_MSG_KEXINIT sent
  332. debug1: SSH2_MSG_KEXINIT received
  333. debug1: kex: algorithm: curve25519-sha256
  334. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  335. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  336. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  337. debug1: kex: curve25519-sha256 need=64 dh_need=64
  338. debug1: kex: curve25519-sha256 need=64 dh_need=64
  339. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  340. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:8S0IQZfrpSnd6Db7ljQx+bBs9ZncMkoBeORHCVyxzMk
  341. The authenticity of host '172.21.0.12 (172.21.0.12)' can't be established.
  342. ECDSA key fingerprint is SHA256:8S0IQZfrpSnd6Db7ljQx+bBs9ZncMkoBeORHCVyxzMk.
  343. ECDSA key fingerprint is MD5:ac:42:ba:1b:cc:5f:1c:44:e2:49:a0:23:66:24:db:8f.
  344. Are you sure you want to continue connecting (yes/no)? yes
  345. Warning: Permanently added '172.21.0.12' (ECDSA) to the list of known hosts.
  346. debug1: rekey after 134217728 blocks
  347. debug1: SSH2_MSG_NEWKEYS sent
  348. debug1: expecting SSH2_MSG_NEWKEYS
  349. debug1: SSH2_MSG_NEWKEYS received
  350. debug1: rekey after 134217728 blocks
  351. debug1: SSH2_MSG_EXT_INFO received
  352. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  353. debug1: SSH2_MSG_SERVICE_ACCEPT received
  354. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  355. debug1: Next authentication method: gssapi-keyex
  356. debug1: No valid Key exchange context
  357. debug1: Next authentication method: gssapi-with-mic
  358. debug1: Unspecified GSS failure. Minor code may provide more information
  359. No Kerberos credentials available (default cache: KEYRING:persistent:1000)
  360.  
  361. debug1: Unspecified GSS failure. Minor code may provide more information
  362. No Kerberos credentials available (default cache: KEYRING:persistent:1000)
  363.  
  364. debug1: Next authentication method: publickey
  365. debug1: Offering RSA public key: cloud.key
  366. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  367. debug1: Next authentication method: password
  368. cirros@172.21.0.12's password:
  369. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  370. Permission denied, please try again.
  371. cirros@172.21.0.12's password:
  372.  
  373. [4]+ Stopped ssh -i cloud.key cirros@172.21.0.12 -v
  374. (overcloud) [stack@refarch-r220-04 temp]$
  375.  
  376. (overcloud) [stack@refarch-r220-04 temp]$ cat cloud.key.pub
  377. ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Bv8BTUOc++bBo301wf3x1mGHrc4wwNGXSg0UrLnpL/aUfmmJfFoy24DLZgmnFlI2z7qOG930aaSgUiEHWgAV7CJJUg8rQdKw1YaUAqqjuJseHR9OSXQO4x710QHefChbKLjdqY/dY02fvaUQfItmJVp1b6VKWIrdk3sj9VdlqPVvgYjnJHjJ3skIl5CJDzYXABsZsWChnL5aJ9hc09OHOpw8WL8U6RkVnEUFhoACZwaED607r9PEva5hWi5FMDZVK6eRD3SOFa4SUsbHPQk8UpM1Dwy+KPPR+tWnJW2ThojbgzcFIogXY8GRgWdQ2oT9kq66TZ76eL1FEZtE12QF stack@refarch-r220-04.front.sepia.ceph.com
  378. (overcloud) [stack@refarch-r220-04 temp]$
  379.  
  380.  
  381. ==============================================================
  382. Please seee cirros-key-2 Image File attached in the email, you will find that .ssh/authorized_keys file on the cirros instance is getting poupulate with the above public key
  383. ==============================================================
Add Comment
Please, Sign In to add comment