Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Network Services»SSH»How to Install or Update OpenSSH Server on Ubuntu & LinuxMint

    How to Install or Update OpenSSH Server on Ubuntu & LinuxMint

    RahulBy RahulOctober 14, 20152 Mins ReadUpdated:August 7, 2018

    OpenSSH is a free tool widely used for remote login on Linux systems. It uses SSH/SecSH protocol suite providing encryption for network services. Its source code is available free to everyone. This article will help you to Install or Update OpenSSH Server on Ubuntu & LinuxMint systems.

    Install or Update OpenSSH Server

    Features of OpenSSH

    • Open Source Project
    • Free Licensing
    • Strong Encryption (3DES, Blowfish, AES, Arcfour)
    • X11 Forwarding (encrypt X Window System traffic)
    • Port Forwarding (encrypted channels for legacy protocols)
    • Strong Authentication (Public Key, One-Time Password and Kerberos Authentication)
    • Agent Forwarding (Single-Sign-On)
    • Data Compression

    Click here to know more details about OpenSSH features.

    Step 1 – Install/Update OpenSSH Server

    OpenSSH Server packages is available under default apt repositories under all versions of operating systems. You can install or update latest OpenSSH server using following command.

    sudo apt-get update
    sudo apt-get install openssh-server
    

    Step 2 – Start/Stop OpenSSH Service

    After installing OpenSSH latest packages from default apt repository. You OpenSSH server will start automatically. But if you need to Start, Stop or Restart OpenSSH server from the command line, use the following commands

    sudo service ssh start
    sudo service ssh stop
    sudo service ssh restart
    

    Step 3 – Open Firewall Port

    If you are using iptables to secure your server, use following command to open port for SSH access.

    sudo iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 22 -j ACCEPT
    

    Or if you are using ufw for managing firewall use following command.

    sudo ufw allow from 192.168.1.0/24 to any port 22
    

    What Next: 5 Tips to secure openssh-server

    OpenSSH openssh server scp sftp-server SSH
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleWeb Design Trends that are Here to Stay
    Next Article How to Upgrade Node.js via NPM

    Related Posts

    (Resolved) userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

    Updated:May 10, 20221 Min Read

    Adding a New SSH Key in GitHub

    Updated:April 1, 20223 Mins Read

    How to Create SFTP Only User in Debian 11

    Updated:September 26, 20214 Mins Read

    How to Disable Strict Host Key Checking in SSH

    Updated:September 25, 20212 Mins Read

    How To Set Up SSH Keys in Linux

    5 Mins Read

    How To Set Up SSH Tunneling

    5 Mins Read

    1 Comment

    1. Nadeem Ullah on December 26, 2020 11:57 pm

      Hi: Rahul!
      I’m running Mininet-VM on Oracle VirtualBox.
      When I write “sudo systemctl status ssh” in the Mininet terminal window, it gives me the following error:

      *sudo: systemctl: command not found*

      so, please help me in this regard!
      THANKS

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.