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

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to install ssh server on Ubuntu

June 27, 2014 by Sharad Chhetri Leave a Comment

SSH, the abbreviation is Secure Shell. It is a software program use the secure shell protocol to accept connection from remote computers.SSH is TCP based protocol.
By default the ssh protocol listen at port no. 22 . You can also customize the port number but always remember while changing the ssh port no. it should be above 1024 and not to be conflicted with same port number.
(Read: change SSH port number)

Without installing SSH server, you can not connect with following protocols into system

  • SFTP
  • SCP
  • SSH

There are many SSH servers software program exists.(List of SSH Servers)
In Debian based Operating System, default SSH server package is OpenSSH . The OpenSSH project is part of OpenBSD . Yes, you heard right ,it is the same team which are behind the awesome operating system called OpenBSD. The OpenBSD team are great in encryption and cryptography.

Installing OpenSSH Server on Ubuntu

To install OpenSSH server on Ubuntu is very easy. We will use the apt command to install the SSH server

sudo apt-get install openssh-server

start/stop/restart the ssh service

To start/stop/restart the ssh service, use the given below command.

Start:

sudo service ssh start

Stop:

sudo service ssh stop

Restart:

sudo service ssh restart

The main configuration files are located in directory path /etc/ssh
The sshd_config and ssh_config are main configuration file.

Now from client side, we can connect to SSH Server.

In linux/Mac/Other Unix Operating System, use the command ssh username@ip-address-OR-FQDN
In Windows, you can use very popular tool called putty .

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Non interactive ,without typing password do ssh to Server : By sshpass
  2. Change the default port number of ssh server
  3. how to deny root ssh access in linux server
  4. Install Openssh server on Ubuntu Desktop / Server
  5. How to install own git server with ssh and http access by using gitolite and gitweb in CentOS
  6. Agent admitted failure to sign using the key ssh
  7. run command in remote linux / unix system by using ssh
  8. Protect ssh with Google Authenticator on Ubuntu 14.04 LTS
  9. rsync over ssh port number on Linux/Unix system
  10. How to enable direct ssh to EC2 linux instance without keypair file

Filed Under: Linux, SSH Tagged With: linux command, ssh

Reader Interactions

Leave a Reply 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.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to protect from port scanning and smurf attack in Linux Server by iptables

How to backup and restore iptables on Linux systems

How to set JAVA environment variables in Linux

How to install korn shell ksh in Linux

find command to search keyword in files recursively in linux

How to change login banner message in GUI mode in CentOS 6 or above version.

How to see system load average in terminal with graphical representation

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy