In this article we will go over how to make a Public Key pair and how to use them to access servers in InMotion Central.
Creating a Public Key Pair
NOTE: You will want to make sure that you have a Private Key pair setup on your computer to use in InMotion Central. If you have a public key pair setup on your computer already skip ahead to step 8 to get a copy of the public key file.
- Open a command prompt by pressing Windows+R, typing cmd, and pressing Enter
Type the following command
ssh-keygen- Press Enter to create a new key pair
- When asked for a file name, you can use the default name, which is id_rsa
- When prompted to enter a passphrase, note that this is optional, but it is recommended that you do so
- Once you have entered a file name and passphrase, the key pair will be created
- The public key will be saved in the file id_rsa.pub
Run the following command to get your Public Key
cat ~/.ssh/id_rsa.pub
Adding key to server inside InMotion Central
- Log into the InMotion Central Account
- Go to the project the user needs modified
- Click the Manage button on the production server
- Select the Add SSH Key button
- Copy your Public Key and paste it into the SSH Key box that comes up
Grab the VPS Hostname and open your Terminal and SSH into the server using the root user
ssh root@vps12345.inmotionhosting.com
Comments
0 comments
Article is closed for comments.