How to Install and Configure OpenSSH Server In Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Oltjano Terpollari

Hi guys, I am a computer Geek and I go by the name Ambition. I do security stuff and I am studying computer engineering. I love programming and Linux.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

9 Responses

  1. Ravi Soni says:


    Trouble here .. : (

    After I changed the ssh port to 13 I’m not able to login via putty (Connection timeout error) what to do now ?

    Command : nc -v -z 13
    Ran succeed..

    • Ravi Soni says:

      I think you article is missing that the port you change to should be open first to connect from outside, it could lock down servers for newbies.

  2. clay says:

    nice simple article. I would go into a little more detail about why to and why not to change the port. This is a very debated thing.

  3. rockwallably says:

    One problem I notice with your post is that you say ‘How Do I Connect to OpenSSH’ and then you promptly say ‘Before we go further, we need to verify….’ and then you proceed to give your conclusion without ever detailing anything about how to connect.

    You simply show how to verify via netcat and then talk about a nice banner.

    Please tell me my eyes don’t fail me ?

    I think you should provide a lot more detail and examples for this post to be of any value.

  4. Mian Anjum Ghaffar says:

    Use yum install nc.x86_64 for netcat Red hat and centos .It worked for me in case of Red hat.
    Sometime you need net cat for openssh

  5. Wellington Torrejais da Silva says:


  6. Mahesh says:

    Lots of Thanks.. Your all posts are reliable guide for every linux professional and newbie.
    Please guide to install Squid proxy server with Dansguardian content filter on Ubuntu please post a stepwise procedure on How to Install and Configure Squid with Dansguardian on Ubuntu 14.04 soon. Please post asap……. I’ve read, searched and tried so many forums/sites/blogs for the same but can’t find any reliable source.

  7. Paul Corr says:

    Nicely done. I am working with two computers on a home LAN to fully explore SSH and your page concisely puts the basics together. I am running Ubuntu 12.04 LTS and OpenSSH on an old Mac mini and connecting via my new Mac mini running OS X Mavericks (10.9.) Some reference books leave out details like the script that starts the server which you need to know to do a restart after configuration change or how to simply verify that the server is listening on a port, for example. Thanks again.

Leave a Reply to Ravi Soni Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.