Installing and Configuring SSH on Debian 12 via VNC

Installing and Configuring SSH on Debian 12 via VNC

If you have access to your server via VNC but SSH is not installed, follow these steps to set it up.


1. Connect to the Server

Open the terminal in VNC and run:

vi /etc/apt/sources.list

2. Edit the Repository List

Remove any unnecessary lines and add the following:

deb https://deb.debian.org/debian bookworm main non-free-firmware
deb-src https://deb.debian.org/debian bookworm main non-free-firmware

Then save the changes:

  • Press Esc,
  • Type :wq!,
  • Press Enter.

3. Update the System

After updating the repository list, run the system update:

apt update
apt dist-upgrade

4. Install OpenSSH

Now, install the SSH server:

apt-get install openssh-server

5. Enable Root Login

Open the SSH configuration file:

vi /etc/ssh/sshd_config

Find this line:

PermitRootLogin prohibit-password

Change it to:

PermitRootLogin yes

Save the changes (Esc:wq!Enter).


6. Restart the SSH Service

Apply the changes by restarting the SSH server:

systemctl restart ssh

Done! You can now connect to your server via SSH with root access. 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to get a trial period VPS / VDS?

We provide a test server for a period of up to 1 day.To receive trial period VPS / VDS you need:...

The reinstallation of the server via the VPS control panel

If you need to reinstall the operating system or change it to a different version, you can do...

Connection to the server through Remount Desktop

In order to allow the connection, you need to do the following: To get started, we connect to...

Hard disk volume check. How to Extend Drive in Windows.

To check the amount of hard disk space on the server, click the start menu, open Administrative...

Reinstallation CentOS 7 64bit

Go to the VPS Control Panel, select CentOS 7 64bit Minimal, check the box and click Reinstall....