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
  • Switching off via nano
  • Disconnection via sFTP
  • Restarting the SSH service:
  • Using an SSH key in sFTP
  • FileZilla
  • WinSCP
PreviousConnecting via SSH keysNextDeploying MikroTik RouterOS on VDS

Last updated 12 months ago

If you are using SSH keys, disabling access to the server via password will be a useful additional security measure for you.

Switching off via nano

Use the following command:

nano /etc/ssh/sshd_config

We get into the sshd config.

We find the string PasswordAuthentication yes

We need to remove the grid (#) so that the row becomes active. And then we change the value of yes to no.

Press Ctrl + X, enter Y to save.

Restarting the SSH service:

sudo service ssh restart

Disconnection via sFTP

In the panel above the file manager, we need to erase the standard path /root and specify /etc/ssh

In this directory, we need to open the sshd_config file.

We find the corresponding PasswordAuthentication yes string.

Remove the grid (#) so that the line becomes active. And then we change the value of yes to no.

We save the file and send it to the server.

Restarting the SSH service:

sudo service ssh restart

Using an SSH key in sFTP

After enabling access only via SSH key, a problem may arise when connecting via sFTP, which is extremely simple to solve at the moment.

FileZilla

Click on the Edit category and select Settings

Then select the sFTP page and click the Add Key File button.

Select the location and add the file.

The key has been added, now FileZilla will take it into account when trying to connect to servers.

WinSCP

Click on the button to create a new connection:

A window opens. Here we specify the IP address of the server and the Username.

Use the More button under the Password line.

In the window that opens, select the Authentication section.

Add the private key and click OK.

We are trying to connect to the server.

The program requests the secret key code, we enter spacecore:

We have connected to the server!