Example of installing openssh-server on Ubuntu 17.04 LTS using the command sudo apt-get install openssh-server.
Ads
Quick installation of openssh-server:
Step 1: Update system:
sudo apt-get update
Step 2: Install: openssh-server
Ater updaing the OS run following command to install the packae:
sudo apt-get install openssh-server
Package Details | |
Package: | openssh-server |
Version: | 1:7.3p1-3build1 |
Maintainer: | Ubuntu Developers |
Home page: | http://www.openssh.com/ |
Description: | secure shell (SSH) server, for secure access from remote machines This is the portable version of OpenSSH, a free implementation of the Secure Shell protocol as specified by the IETF secsh working group. . Ssh (Secure Shell) is a program for logging into a remote machine and for executing commands on a remote machine. It provides secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel. It can be used to provide applications with a secure communication channel. . This package provides the sshd server. . In some countries it may be illegal to use any encryption at all without a special permit. . sshd replaces the insecure rshd program, which is obsolete for most purposes. |
Distro: | Ubuntu 17.04 |
Release: | |
Repo/Section: | net |
First of all update your system with the command:
sudo apt-get update
Ads
Above command will download the package lists for Ubuntu 17.04 on your system. This will update the list of newest versions of packages and its dependencies on your system.
After downloading the latest package list with the help of above you can run the installation process.
If openssh-server is not installed on your compter then the command 'dpkg -L openssh-server' will give followin error.
Installing openssh-server:
After system update use the following command to install openssh-server:
sudo apt-get install openssh-server
Above command will confirm before installing the package on your Ubuntu 17.04 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.
Now we will see the commands for uninstalling the openssh-server from Ubuntu 17.04. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.
To remove the openssh-server following command is used:
sudo apt-get remove openssh-server
Following command is used to remove the openssh-server package along with its dependencies:
sudo apt-get remove --auto-remove openssh-server
This will remove openssh-server and all its dependent packages which is no longer needed in the system.
Completely removing openssh-server with all configuration files:
Following command should be used with care as it deletes all the configuration files and data:
sudo apt-get purge openssh-server
or you can use following command also:
sudo apt-get purge --auto-remove openssh-server
Above command will remove all the configuration files and data associated with openssh-server package. You can can't recover the delete data, so, use this command with care.