• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to uninstall ssh software package from Ubuntu

by admin

The ssh (Secure Shell) package is a network protocol used to securely connect to a remote computer. It allows you to remotely log in to a server, execute commands, and transfer files securely over an encrypted connection.

On Ubuntu, the ssh package is pre-installed and is commonly used to remotely manage servers and other computer systems. It is an essential tool for system administrators and developers who need to remotely access servers and work on them from a remote location. To use ssh, you will need to have an ssh client installed on your local computer, and an ssh server running on the remote computer that you want to connect to. The ssh package includes both the ssh client and server programs.

To connect to a remote computer using ssh, you can use the following command syntax:

$ ssh username@remote-host

This command will open an ssh session with the remote host, using the specified username and remote-host values. You will be prompted to enter your password for the remote host, and then you will be logged in to the remote host and able to execute commands and transfer files.

Unintalling ssh from Ubuntu

You can uninstall an installed ssh package from Ubuntu through the terminal:

$ sudo apt-get remove ssh

Uninstall ssh including dependent package

If you would like to remove ssh and it’s dependent packages which are no longer needed, use the below command to remove the ssh package:

$ sudo apt-get remove --auto-remove ssh

Use Purging ssh

If you want to completely remove the ssh package and all its configuration files, you can use the purge option instead of remove, like this:

$ sudo apt-get purge ssh 

If you use purge options along with auto remove, will be removed everything regarding the package, It’s really useful when you want to reinstall again.

$ sudo apt-get purge --auto-remove ssh

Filed Under: Linux

Some more articles you might also be interested in …

  1. gpg: command not found
  2. vncviewer Command Examples in Linux
  3. protonvpn-cli connect Command Examples
  4. mkdir and rmdir Command Examples in Linux
  5. ipfs Command Examples
  6. How to disable swap in Linux
  7. circo: Render an image of a circular network graph from a graphviz file
  8. grpcurl Command Examples
  9. cpufreq-aperf: command not found
  10. localectl Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright