<p style="text-align: left;">Today, the editor will share with you the relevant knowledge points about how to uninstall ssh on ubuntu. , I hope you have gained something after reading this article, let's take a look at it together.</p><p style="text-align: left;"><img src="/uploads/allimg/20230104/1-230104105059464.jpg" alt="QQ截图20230104105025.jpg" width="435" height="319" style="width: 435px; height: 319px;"/></p><p style="text-align: left;">1.Use the shortcut key [Ctrl+Alt+T] on the ubuntu system desktop to open the terminal command line mode.</p><p><br/></p><p style="text-align: left;">2. Enter the following command in the ubuntu terminal command line to stop the ssh service:</p><pre class="brush:html;toolbar:false" style="text-align: left;">sudo stop ssh</pre><p><br/></p><p style="text-align: left;">3. Finally, enter the following command to uninstall the ssh client and server That's it.</p><pre class="brush:html;toolbar:false" style="text-align: left;">apt-get remove openssh-client #Uninstall ssh client
apt-get remove openssh-server #Uninstall ssh server</pre><p><br/></p><p style="text-align: left;">Related operation commands:</p><pre class="brush:html;toolbar:false" style="text-align: left;">apt-get install openssh-server #Install ssh server
apt-get install openssh-client #Install ssh client
sudo /etc/init.d/ssh start #Start ssh service</pre><p><br/></p><p><br/></p><p><br/></p>