SSH Login Using PuTTY to a Non-Root User on a Debian System (Already Installed)
In this article, we will discuss how to use PuTTY to SSH login to a non-root user on a Debian system that has already been installed. We will cover the key concepts related to this topic, including setting up a new user, installing PuTTY, and configuring SSH.
Setting Up a New User
Before you can SSH login to a non-root user on a Debian system, you need to set up a new user. To do this, log in to your Debian system as the root user and use the adduser command to create a new user. For example, to create a new user named "tom", you would use the following command:
adduser tom
This will create a new user account with the username "tom" and prompt you to enter a password for the new user. Once you have set a password for the new user, you can log in to the Debian system using the new user account.
Installing PuTTY
PuTTY is a popular SSH client for Windows that you can use to SSH login to your Debian system. To install PuTTY, go to the PuTTY download page and download the PuTTY installer for Windows. Once the installer has downloaded, run it to install PuTTY on your Windows system.
Configuring SSH
Before you can SSH login to your Debian system using PuTTY, you need to configure SSH on the Debian system. To do this, log in to the Debian system as the root user and use the systemctl command to start the SSH service. For example:
systemctl start ssh
This will start the SSH service on the Debian system, allowing you to SSH login to the system using PuTTY.
SSH Login Using PuTTY
To SSH login to your Debian system using PuTTY, open the PuTTY application on your Windows system and enter the IP address of your Debian system in the "Host Name (or IP address)" field. Then, select the "SSH" protocol from the "Connection type" dropdown list and click the "Open" button to open an SSH connection to your Debian system.
When prompted, enter the username and password for the non-root user that you set up earlier. Once you have successfully logged in, you will be able to run commands on your Debian system using the PuTTY SSH client.
- To SSH login to a non-root user on a Debian system that has already been installed, you need to set up a new user, install PuTTY, and configure SSH on the Debian system.
- To set up a new user, log in to your Debian system as the root user and use the
addusercommand to create a new user. - To install PuTTY, go to the PuTTY download page and download the PuTTY installer for Windows. Once the installer has downloaded, run it to install PuTTY on your Windows system.
- To configure SSH on the Debian system, log in as the root user and use the
systemctlcommand to start the SSH service. - To SSH login to your Debian system using PuTTY, open the PuTTY application on your Windows system and enter the IP address of your Debian system in the "Host Name (or IP address)" field. Then, select the "SSH" protocol and click the "Open" button to open an SSH connection to your Debian system.