Installing open ssh on Ubuntu 16.04 LTS

Ads
 

Installing open ssh on Ubuntu 16.04 LTS

What are the commands to install open ssh on Ubuntu 16.04 LTS? Thanks

View Answers

July 22, 2016 at 9:09 AM

Hi,

You can install open ssh on Ubuntu 16.04 LTS using following command:

sudo apt-get install openssh-server

You can check the status of sever with following command:

sudo service ssh status

open ssh configuration file is present at /etc/ssh/sshd_config and vi editor can be used to edit it:

vi /etc/ssh/sshd_config

Here is the full log of open ssh installation on Ubuntu 16.04?

[email protected]:/home/deepak# ssh localhost
ssh: connect to host localhost port 22: Connection refused
[email protected]:/home/deepak# sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic
  linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ncurses-term openssh-sftp-server ssh-import-id
Suggested packages:
  ssh-askpass rssh molly-guard monkeysphere
The following NEW packages will be installed:
  ncurses-term openssh-server openssh-sftp-server ssh-import-id
0 upgraded, 4 newly installed, 0 to remove and 192 not upgraded.
Need to get 636 kB of archives.
After this operation, 5,145 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 ncurses-term all 6.0+20160213-1ubuntu1 [249 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-sftp-server amd64 1:7.2p2-4ubuntu1 [38.8 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-server amd64 1:7.2p2-4ubuntu1 [338 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 ssh-import-id all 5.5-0ubuntu1 [10.2 kB]
Fetched 636 kB in 3s (159 kB/s)           
Preconfiguring packages ...
Selecting previously unselected package ncurses-term.
(Reading database ... 242239 files and directories currently installed.)
Preparing to unpack .../ncurses-term_6.0+20160213-1ubuntu1_all.deb ...
Unpacking ncurses-term (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package openssh-sftp-server.
Preparing to unpack .../openssh-sftp-server_1%3a7.2p2-4ubuntu1_amd64.deb ...
Unpacking openssh-sftp-server (1:7.2p2-4ubuntu1) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a7.2p2-4ubuntu1_amd64.deb ...
Unpacking openssh-server (1:7.2p2-4ubuntu1) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_5.5-0ubuntu1_all.deb ...
Unpacking ssh-import-id (5.5-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Setting up ncurses-term (6.0+20160213-1ubuntu1) ...
Setting up openssh-sftp-server (1:7.2p2-4ubuntu1) ...
Setting up openssh-server (1:7.2p2-4ubuntu1) ...
Creating SSH2 RSA key; this may take some time ...
2048 SHA256:mn7h3dbLueUIk426A9FVvIxzDh/eN1qwAJbYHBqkaVM [email protected] (RSA)
Creating SSH2 DSA key; this may take some time ...
1024 SHA256:mBJzXEEj26YQZL/4m5JelDFNkp3VSSIq2CysFY0AQ0g [email protected] (DSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:7NL5Ccs6xwwwjLBLp9y/gbqGs0j51vaUmD7Es2Ce2+s [email protected] (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:9V+soLIQpThNWVfbslKLreFjnr9/Z09Y3GJbqijtiT8 [email protected] (ED25519)
Setting up ssh-import-id (5.5-0ubuntu1) ...
Processing triggers for systemd (229-4ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
[email protected]:/home/deepak# sudo service ssh status
? ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enab
   Active: active (running) since Fri 2016-07-22 18:20:51 IST; 26s ago
 Main PID: 3263 (sshd)
   CGroup: /system.slice/ssh.service
           +-3263 /usr/sbin/sshd -D

Jul 22 18:20:51 deepakub16 systemd[1]: Starting OpenBSD Secure Shell server...
Jul 22 18:20:51 deepakub16 sshd[3263]: Server listening on 0.0.0.0 port 22.
Jul 22 18:20:51 deepakub16 sshd[3263]: Server listening on :: port 22.
Jul 22 18:20:51 deepakub16 systemd[1]: Started OpenBSD Secure Shell server.

Thanks


July 25, 2016 at 8:30 AM

Check following video:

Thanks

Ads









Related Tutorials/Questions & Answers:
Installing open ssh on Ubuntu 16.04 LTS
Installing open ssh on Ubuntu 16.04 LTS  What are the commands to install open ssh on Ubuntu 16.04 LTS? Thanks   Hi, You can install open ssh on Ubuntu 16.04 LTS using following command: sudo apt-get install openssh
Installing Guest Additions CD images in Ubuntu 16.04 LTS
Installing Guest Additions CD images in Ubuntu 16.04 LTS  Hi, I have just installed Ubuntu 16.04 in Oracle Virtual box. Now how to install the Guest Additions CD software on the OS? Thanks   Hi, Check this video
Advertisements
How to install Ubuntu 16.04 LTS?
How to install Ubuntu 16.04 LTS?  Hi, Latest version of Ubuntu 16.04 LTS. This video tutorial teaches you to install Ubuntu 16.04 LTS on Your Oracle Virtual Box. Thanks   How to install Ubuntu 16.04 LTS
How to upgrade Ubuntu 16.04 LTS?
How to upgrade Ubuntu 16.04 LTS?  Hi, I want to learn the process of upgrading the Ubuntu 16.04. Provide me more details. Thanks
How to upgrade Ubuntu to Ubuntu 16.04 LTS?
How to upgrade Ubuntu to Ubuntu 16.04 LTS?  Hi, I have old system running the Ubunut 14.04 and now I want to upgrade it to latest version of Ubuntu 16.04 LTS. How to do upgrade? Thanks   Hi, Here is video
How to install LAMP server on Ubuntu 16.04 LTS?
How to install LAMP server on Ubuntu 16.04 LTS?  I have given the task to install LAMP sever on Ubuntu 16.04 LTS. How to install LAMP server on Ubuntu 16.04 LTS? Thanks   Hi, For install LAMP on Ubuntu 16.04 LTS apt
How to install jre on Ubuntu 16.04 LTS?
with the tutorial for installing jre on Ubunut. How to install jre on Ubuntu 16.04 LTS...How to install jre on Ubuntu 16.04 LTS?  Hi, I have installed Ubuntu... command to install default jre on Ubuntu 16.04 LTS: sudo apt-get install default-jre
How to download and install Ubuntu 16.04?
the VM and now your Ubuntu 16.04 LTS desktop is ready to use. After installing...;Hi, Here are steps to download and install Ubuntu 16.04 LTS: Download... of Ubuntu 16.04 LTS Desktop: Here are the features of newly released Ubuntu 16.04
How to install virtualbox guest additions in Ubuntu 16.04?
How to install virtualbox guest additions in Ubuntu 16.04?  Hi, How to install virtualbox guest additions in Ubuntu 16.04? The problem is I am.... Thanks   Hello, After installing the virtualbox guest additions in Ubuntu
How to install ffmpeg on Ubuntu 16.04?
How to install ffmpeg on Ubuntu 16.04?  Hi, My new Ubuntu 16.04 LTS... on Ubuntu 16.04? Thanks   Hi, How to install ffmpeg on Ubuntu 16.04? Use... of ffmpeg on Ubuntu: [email protected]:~$ sudo su [sudo] password for deepak
How to install p7zip on Ubuntu 16.04?
How to install p7zip on Ubuntu 16.04?  Hi, What is the correct command to install p7zip on Ubuntu? How to install p7zip on Ubuntu 16.04? Thanks   Hi, To install p7zip on Ubuntu 16.04 following the following steps
How to install pip on Ubuntu 16.04?
How to install pip on Ubuntu 16.04?  Hi, How to install pip on Ubuntu 16.04? I am running the command apt-get install pip, but its not working...://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-dev amd64 2.7.12-1~16.04 [27.8
How to install MySQL Server and Client on Ubuntu 16.04?
How to install MySQL Server and Client on Ubuntu 16.04?  Hi, Latest version of Ubuntu 16.04 is already released and it can be downloaded from Ubuntu website. I have installed latest version of Ubuntu 16.04 on my computer. I
How To Install Google Chrome on Ubuntu 16.04?
Google Chrome on Ubuntu 16.04 LTS. Update system: First of all you should update...How To Install Google Chrome on Ubuntu 16.04?  Hi, What are the correct steps to install Chrome on Ubuntu 16.04? How To Install Google Chrome
How to uninstall JDK from Ubuntu 16.04?
How to uninstall JDK from Ubuntu 16.04?  Hi, I have previously installed JDK 8 on Ubuntu 16.04 and now want to uninstall. How to uninstall JDK from Ubuntu 16.04? How I can completely remove Oracle JDK 8 from Ubuntu 16.04
How to Install Oracle Java JDK 8 in Ubuntu 16.04?
How to Install Oracle Java JDK 8 in Ubuntu 16.04?  Hi, Let's know... Java 8? How to Install Oracle Java JDK 8 in Ubuntu 16.04? Thanks   Hi, How to Install Oracle Java JDK 8 in Ubuntu 16.04? Here are the steps
How to see ubuntu version on server?
I have ssh access. How to see ubuntu version on that server? Thanks  ...: Command to display the version of Ubuntu server/desktop through ssh terminal: lsb...How to see ubuntu version on server?  Hi, Its easy to see
SSH library for Java
SSH library for Java  SSH library for Java
How to check Hadoop version in Ubuntu?
to Hadoop cluster through ssh terminal. How to check Hadoop version in Ubuntu? Thanks   Hi, Its easy to check the version of Hadoop in Ubuntu. type...How to check Hadoop version in Ubuntu?  Hi, I am trying various
How to install autoconf, automake and libtool in Ubuntu 15.10?
How to install autoconf, automake and libtool in Ubuntu 15.10?  Hi, How to install autoconf, automake and libtool in Ubuntu 15.10? Thanks   For installing these components use the following command: sudo apt-get
unix/ubuntu os
unix/ubuntu os  how to find jdk path in unix through terminal any command
installing axis2
Installing Axis2         Installing Axis2: Download ?axis2-1.4.zip? (Standard Binary Distribution) from to http://ws.apache.org
JDBC Configuration in Ubuntu 10.04
JDBC Configuration in Ubuntu 10.04  Hi everybody, Am using Linux Ubuntu 10.04, java jdk 1.6 and mysql 5.1 and I have trouble to load mysql connector and i have no such driver found for dbtest.java. pleas guide me to solve
Installing Audacity
Installing Audacity  Hi, How to install Audacity on windows? Thanks   Hi, First of all you should download the installer from http://www.audacityteam.org/ for your operating system. Then double click the installer
How to install Neo4j on Ubuntu 15.10?
How to install Neo4j on Ubuntu 15.10?  How to install the latest version of Neo4j on Ubuntu? Thanks
Installing Ant - Ant
Installing Ant  Need to know the basic steps to Installing Ant
how to find jdk path in ubuntu?
how to find jdk path in ubuntu?  How to find out the path of installed jdk in ubuntu? Could anyone tell that command to execute from terminal.. Thanks
connecting to ssh using ir00co and postgres - Struts
connecting to ssh using ir00co and postgres  how can i connect to this servers after i succesfully login in the ldap?will i open new connection?any advice will be appreciated... ebok
Installing the Driver and Configuring the CLASSPATH
Installing the Driver and Configuring the CLASSPATH  What is the procedure to Installing the Driver and Configuring the CLASSPATH mysql jdbc connector? the jar file
how to run jdbc program in linux-ubuntu?
how to run jdbc program in linux-ubuntu?   how to run jdbc program in linux-ubuntu
How to install gtk-doc-tools package in Ubuntu?
on Ubuntu you can open the terminal and then type following command: apt-get install...How to install gtk-doc-tools package in Ubuntu?  How to install gtk-doc-tools package in Ubuntu? Thanks   In this post I will explain you

Ads