macOS/Windows tutorial on using SSH private key connection to log in to DMIT

888u

Last update at :2024-03-17,Edit by888u

I introduced the "DMIT New User Registration and Purchase Tutorial" before. DMIT cannot be connected remotely using the root password. You can only log in through an SSH key. If you have not used a private key to log in, you may not know how to connect to DMIT locally. , so this article briefly introduces how to use SSH private keys to remotely connect to DMIT on macOS and Windows.

1. DMIT SSH key download

The first step is to download the SSH key. You can download the SSH password corresponding to each DMIT VPS on the DMIT background service page. Click "SSH Key Management":

It should be noted that the DMIT SSH key can only be downloaded once. If it is lost, you need to enter the management page to regenerate it. After regeneration, you need to restart the DMIT VPS to take effect (Reboot button):

By default, both the SSH public key and the SSH private key are downloaded. We only need the private key (private_key):

There are two key files in private_key, one is in .ppk format and the other is in .pem format:

2. macOS uses SSH private key to connect to DMIT

1. Modify private key permissions

chmod 600 id_rsa.pem

2. Use private key to connect to VPS

ssh -i id_rsa.pem root@DMIT_VPS_IP

3. Windows uses SSH private key to connect to DMIT

Under Windows, you can use PuTTY or XShell to connect to log in to DMIT. The operations are similar, except that you need to set a private key path. The following uses PuTTY as an example to introduce how to set it up. For regular PuTTY usage tutorials, please refer to: "PuTTY usage tutorial: use PuTTY remote connection to Linux VPS》

Enter the IP address of DMIT VPS, select the SSH type, click "Data" under "Connection" on the right, and fill in "root" after "Auto-login username":

Then click to expand "SSH" on the right, then select "Auth", click "Browse" to select your private key in ".ppk" format, and finally click "Open" to successfully log in to DMIT:

After that, you can use DMIT VPS normally:

The above is how to connect and log in to DMIT VPS on macOS and Windows. Since only key login is supported, it may be a bit difficult for those who have not used it before. I hope this DMIT tutorial will be helpful to everyone.

Recommended site searches: How to check IP address, IP proxy free version, apply for free space, godaddy space, website space registration-free, Wanwang registered domain name query, how to query domain name registration number, virtual host, overseas host rental, wordpress space ,

macOS/Windows tutorial on using SSH private key connection to log in to DMIT

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码