How to create an Auto-Generate SSH KEY in MM4? (Existing server)
Step1. Login to z.com account, https://hosting.z.com/mm/signin/ 
Step2. Go to the "Cloud VPS" tab under MM4. Click "SSH Key" menu.
Step3. Click "+ SSH Key" to generate new SSH Key from panel.
Step4. Choose "Auto-Generate", add a Name Tag and click "Save". 
Step5. Click "Download" to download SSH private key and save in a secure place.
Step6. Now the SSH Key is generated. To use this key, we need to add in the server also. Copy the SSH Public Key and click "Server" and choose server and click "Console".
Step7. The server console will open. Please login with root password. 
Step8. Now write down the following command and click enter.
cmd - nano .ssh/authorized_keys

Step9. Paste the SSH public key and click "Ctrl + O → Enter" then "Ctrl + X"to save. Then restart ssh service.
cmd - sudo systemctl restart ssh

Step10. To login with SSH Key to server, copy the "IP Address" of server and copy the file path of downloaded SSH private key file and open "cmd" of local pc.
Write down the below command relative to your server information and click enter. NOTE: replace [file path of ssh private key] and [server ip] with your actual server information.
cmd - ssh -i [file path of ssh private key] root@[server ip]
example cmd - ssh -i "C:\Users\Min Sein\Downloads\2026815102735.pem" root@118.27.149.17
Step11. Now successfully login to the server with SSH Key. 
Thank You!
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article