diff --git a/ui/src/config/section/compute.js b/ui/src/config/section/compute.js
index 4d30841d2d5..43985497153 100644
--- a/ui/src/config/section/compute.js
+++ b/ui/src/config/section/compute.js
@@ -457,14 +457,8 @@ export default {
icon: 'plus',
label: 'Create SSH Key Pair',
listView: true,
- args: ['name', 'account', 'domainid']
- },
- {
- api: 'registerSSHKeyPair',
- icon: 'key',
- label: 'Register SSH Public Key',
- listView: true,
- args: ['name', 'account', 'domainid', 'publickey']
+ popup: true,
+ component: () => import('@/views/compute/CreateSSHKeyPair.vue')
},
{
api: 'deleteSSHKeyPair',
diff --git a/ui/src/locales/en.json b/ui/src/locales/en.json
index 264fa656d55..7174a08b1f0 100644
--- a/ui/src/locales/en.json
+++ b/ui/src/locales/en.json
@@ -744,6 +744,7 @@
"message.network.removeNIC": "Please confirm that want to remove this NIC, which will also remove the associated network from the VM.",
"message.network.secondaryIP" : "Please confirm that you would like to acquire a new secondary IP for this NIC. \n NOTE: You need to manually configure the newly-acquired secondary IP inside the virtual machine.",
"message.network.updateIp": "Please confirm that you would like to change the IP address for this NIC on VM.",
+"message.desc.create.ssh.key.pair": "Please fill in the following data to create or register a ssh key pair.
(1) If public key is set, CloudStack will register the public key. You can use it through your private key.
(2) If public key is not set, CloudStack will create a new SSH Key pair. In this case, please copy and save the private key. CloudStack will not keep it.
",
"mincpunumber": "Min CPU Cores",
"minInstance": "Min Instances",
"minIops": "Min IOPS",
diff --git a/ui/src/views/compute/CreateSSHKeyPair.vue b/ui/src/views/compute/CreateSSHKeyPair.vue
new file mode 100644
index 00000000000..4e0fa514924
--- /dev/null
+++ b/ui/src/views/compute/CreateSSHKeyPair.vue
@@ -0,0 +1,224 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+
+
+
+
+
+
+