fbpx
en English
ar Arabiczh-CN Chinese (Simplified)nl Dutchen Englishfr Frenchde Germanit Italianpt Portugueseru Russianes Spanish

How to access Ubuntu server using putty from windows?

In this article, we are going to learn how to access Ubuntu Linux from Windows using putty step by step. To access ubuntu or any Linux server through putty we required the server IP address and ssh services must be enabled, also you must be able to ping the server from your windows server.

Access Ubuntu server using putty​

Check ssh is enabled or not using the below commands.

# sudo systemctl status ssh

Unit ssh.service could not be found.

Check the above query output, the ssh service could not found, which means we need to install the ssh service first.

How to install ssh in Ubuntu?

The below query will help us to install ssh directly from the internet (your machine must be connected to the internet)

# sudo apt-get install ssh

Output from the above query:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
  libgstreamer-plugins-bad1.0-0 libva-wayland2
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ncurses-term openssh-server openssh-sftp-server ssh-import-id
Suggested packages:
  molly-guard monkeysphere ssh-askpass
The following NEW packages will be installed:
  ncurses-term openssh-server openssh-sftp-server ssh ssh-import-id
0 upgraded, 5 newly installed, 0 to remove and 57 not upgraded.
Need to get 679 kB of archives.
After this operation, 6,042 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu impish-updates/main amd64 openssh-sftp-server amd64 1:8.4p1-6ubuntu2.1 [33.0 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu impish-updates/main amd64 openssh-server amd64 1:8.4p1-6ubuntu2.1 [382 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu impish-updates/main amd64 ssh all 1:8.4p1-6ubuntu2.1 [4,996 B]
Get:4 http://in.archive.ubuntu.com/ubuntu impish/main amd64 ncurses-term all 6.2+20201114-2build1 [249 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu impish/main amd64 ssh-import-id all 5.11-0ubuntu1 [10.1 kB]
Fetched 679 kB in 1s (640 kB/s)     
Preconfiguring packages ...
Selecting previously unselected package openssh-sftp-server.
(Reading database ... 191191 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a8.4p1-6ubuntu2.1_amd64.deb ...
Unpacking openssh-sftp-server (1:8.4p1-6ubuntu2.1) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a8.4p1-6ubuntu2.1_amd64.deb ...
Unpacking openssh-server (1:8.4p1-6ubuntu2.1) ...
Selecting previously unselected package ssh.
Preparing to unpack .../ssh_1%3a8.4p1-6ubuntu2.1_all.deb ...
Unpacking ssh (1:8.4p1-6ubuntu2.1) ...
Selecting previously unselected package ncurses-term.
Preparing to unpack .../ncurses-term_6.2+20201114-2build1_all.deb ...
Unpacking ncurses-term (6.2+20201114-2build1) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_5.11-0ubuntu1_all.deb ...
Unpacking ssh-import-id (5.11-0ubuntu1) ...
Setting up openssh-sftp-server (1:8.4p1-6ubuntu2.1) ...
Setting up openssh-server (1:8.4p1-6ubuntu2.1) ...

Creating config file /etc/ssh/sshd_config with new version
Creating SSH2 RSA key; this may take some time ...
3072 SHA256:smaGCUvHc4NW2TDJPxNXyOTGAKgCqQd//5VQ0z7vu0s root@ocp-virtual-machine (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:K/rl4rGZtAEIx6gyUAPu+qgCWAwgDVfQ4KT71M+SXPI root@ocp-virtual-machine (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:Ih1hAJ5wRoEZm7wkqZEf4958cLyKIadaluU+OrtTJ9Q root@ocp-virtual-machine (ED25519)
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up ssh-import-id (5.11-0ubuntu1) ...
Setting up ncurses-term (6.2+20201114-2build1) ...
Setting up ssh (1:8.4p1-6ubuntu2.1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for ufw (0.36.1-1ubuntu1) ...

Now the ssh successfully installed, check ssh service status using the following query:

# sudo systemctl status ssh

In the below output you clearly see the ssh service started.

install ssh in ubuntu

Find IP address in ubuntu

We need the IP address to access the Ubuntu server using putty from windows, use the below command to check the IP address.

# ip a
access Ubuntu server using putty

Open Putty

Open putty and connect the Ubuntu server using the above IP address and set it as per the below screenshot.

access Ubuntu server using putty

Access Ubuntu server using putty

Click on the open button and enter your username and password then you will be logged in.

  • AUTOMATICALLY KILL INACTIVE SESSIONS

    AUTOMATICALLY KILL INACTIVE SESSIONS

  • Upgrade Oracle 11g to 19c using AutoUpgrade utility

    Upgrade Oracle 11g to 19c using AutoUpgrade utility

  • Check the Patch Applied to the Oracle Database

    Check the Patch Applied to the Oracle Database

Leave a Comment