SpaceCore WIKI
English
English
  • Personal Account and Registration
    • Account registration
    • «Customer» section
    • «Finance» section
    • Account Verification (KYC)
  • Customer service
    • How do I place an order?
    • How to contact support?
    • The Game Hosting panel
    • Setting Up BILLmanager 6 for Reselling
  • Communications
    • Notifications in Telegram
    • Web Hosting Notifications
    • Using a ping bot in Telegram
  • Information board
    • Blocked ports (VPS/VDS)
    • What is IOPS?
    • VAT for the EU and UK
  • VPS and Dedicated Servers
    • How to use VPS/VDS?
    • Changing the Password for VDS
  • OS and software configuration
    • Java [Linux]
    • Screen
    • Linux Password Recovery
    • Connecting via SSH keys
    • Disabling access to Linux using a password
    • Deploying MikroTik RouterOS on VDS
  • AI
    • Deploying DeepSeek on your server in just a few clicks
  • Windows
    • RDP connection
    • Configuring the RDP connection
    • Changing the password
    • Installation via QEMU
    • How to add an IPv4
    • Download files
    • Bruteforce Windows
  • Network Setup and Security
    • No interaction with private networks
    • Working with TCPDump
    • Change MTU Value
    • Configure IPTables
    • [DNS] Temporary failure resolving...
    • Network Speed Measurement [SpeedTest]
    • How do I buy a domain name?
    • How do I direct my domain to an IP address?
    • How to Protect Your Server? Basics of Cybersecurity
  • VPN and Privacy
    • WireGuard VPN [Easy]
    • OpenVPN [Easy]
    • Outline VPN Installation
    • Installing TorrServer
    • Installing 3X UI
    • Installing Marzban
    • Proxy for Specific Websites (V2RayN)
    • Use Nekoray
  • System monitoring
    • Traffic monitoring via VnStat
    • How to use the MTR tool
    • Getting Serial Numbers of Drives
  • Administration and Backups
    • Working with FTP Repository
    • Auto-shipment of backups
    • Installing an FTP Server
    • Mounting Linux Drives
  • Web development
    • Installing Apache2
    • Installing Nginx
    • Installing PHP
    • Installing MySQL
    • Installing PhpMyAdmin
    • Let's Encrypt SSL Generation
  • Minecraft
    • Installing Minecraft Java Server
    • Installing the Minecraft Bedrock/PE server
    • Installing the BungeeCord server
    • Installing Sponge Forge 1.12.2 Kernel
    • Configuring server.properties
    • Installing the icon on the server
    • Launch Options
    • Installing a resource pack on the server
  • Hetzner Servers
    • Control Panel
    • Password change via Rescue
    • Installing the operating system
  • 🇩🇪Contabo
    • The Control Panel
    • Disk space expansion
Powered by GitBook
On this page
  • Windows installation
  • There are two ways to fix the SSH key on the server:
  • Using nano utilities
  • Data transmission via sFTP
  • Connecting via SSH key
  • How do I save server data for quick login?
PreviousLinux Password RecoveryNextDisabling access to Linux using a password

Last updated 11 months ago

Are you concerned about the security of your server? You need to activate the authorization method via SSH key and now more!

Windows installation

Launch the PuTTYgen app, or you can download the portable version for its system clearances by one of the links:

32-bit version:

64-bit version:

At startup we have this window:

Press the Generate button and for some time lead to random places with the mouse pointer, it is necessary for the unique generation of the key.

After the action we see the following data:

The Public key for pasting line contains prepared text that we need to use later.

At the request of the Key passphrase You can specify additional code for your key, which will need to be entered at each connection to the server, we will specify the word spacecore. Then you need to click the Save public key button to additionally save the public key that was specified above. And press Save private key and save the private key file that we need to connect to the server.

The name of the key files can be any, it does not affect anything.

We saved and received 2 files:

There are two ways to fix the SSH key on the server:

Using nano utilities

After connecting to the server we need to use the command

nano /root/.ssh/authorized_keys

We have entered the editing panel of the authorized_keys file, which is responsible for configuring the SSH keys.

At the moment the file is empty, we need to fully copy all the text from the window to PuTTYgen:

Then insert it into the editable PKM file (right mouse button).

Press the key combination Ctrl + X

Confirm file saving by entering the letter Y.

The SSH key was successfully linked to our server.

Data transmission via sFTP

Connect to our server and see on the main page the list of files, go to the directory . ssh

Here we see the file authorized_keys, currently it is empty, its size is 0 bytes.

Press PKM and open file

Here we insert the same PuTTYgen public key.

Save the changes and send the file to the server.

Done, SSH key set!

Connecting via SSH key

When we open PuTTY program we enter the standard interface, we need to enter the IP address of the server.

In the left menu, open the SSH tab and move to Auth.

Here we need to select the location of the private key file (note, not public!) with the extension . ppk

After adding the key, press the Open button. The standard login interface appears, fill in.

After entering the username, we ask for the Passphrase-code (when generating the key we specified spacecore), enter.

Congratulations, SSH key authentication was successful!

How do I save server data for quick login?

You need to enter the IP address of the server as well as bind your private SSH key. Then we specify the name of the session to be saved.

Session remained.


You can also specify a user name in front of the IP address to speed up the login process, like this:

username@IP-address

Keep. Now, double-clicking the saved session will open a window in which we should enter the private key code (only if you have specified it. In the absence of the code, the connection will be instantly without entering additional data).

We introduce it. That's it, we're connected!

download
download