Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Network Services»SSH»How to Install or Update OpenSSH Server on Ubuntu & LinuxMint

    How to Install or Update OpenSSH Server on Ubuntu & LinuxMint

    By RahulAugust 7, 20182 Mins Read

    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.

    Advertisement

    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

    Related Posts

    How To Display Warning Message to Unauthorized SSH Access

    How to Set a Custom SSH Login Banner and MOTD

    How to Install and Secure OpenSSH Server on Pop!_OS

    View 1 Comment

    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

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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