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
Installing Anaconda Python on Ubuntu
installer for installing Anaconda Python on Ubuntu 16.04 Now you can run the installer... latest version of Anaconda Python on Ubuntu 16.04, but the steps describe here...How to Install Anaconda Python on Ubuntu and test with simple program
how to install wireshark 2.6 2 on ubuntu 16.04
how to install wireshark 2.6 2 on ubuntu 16.04  Hi, how to install wireshark 2.6 2 on ubuntu 16.04? Thanks   Hi, You can to add Add... wireshark 2.6 2 on ubuntu 16.04 with following command: sudo apt-get install
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
Installing oracle Java 8 on Ubuntu 18.04
Installing oracle Java 8 on Ubuntu 18.04  Hi, What are the steps for installing oracle java 8 on ubuntu 18.04? I want to install Oracle Java 8... to my Ubuntu 18.04. How to do this? Thanks   Hi, Installing
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
How to install OpenJDK 8 in Ubuntu 18.04?
How to install OpenJDK 8 in Ubuntu 16.04/18.04? In this tutorial we are going to guide you steps by step for installing the OpenJDK 8 on Ubuntu 18.04... operating system including Ubuntu 16.04, Ubuntu 18.04 and Ubuntu 19.04. So, if you
ModuleNotFoundError: No module named 'lts_workflows'
ModuleNotFoundError: No module named 'lts_workflows'  Hi, My... 'lts_workflows' How to remove the ModuleNotFoundError: No module named 'lts_workflows' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'tutor-lts'
ModuleNotFoundError: No module named 'tutor-lts'  Hi, My Python... 'tutor-lts' How to remove the ModuleNotFoundError: No module named 'tutor-lts' error? Thanks   Hi, In your python environment you
installing axis2
Installing Axis2         Installing Axis2: Download ?axis2-1.4.zip? (Standard Binary Distribution) from to http://ws.apache.org
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
java 11 lts release date
java 11 lts release date  Hi, When Java 11 is going to be released? Is it released? What are the features of JDK 11 and what is LTS version means... Support (LTS). Oracle will provide long term support for JDK 11. Check JDK 11
ModuleNotFoundError: No module named 'lts_workflows_sm_scrnaseq'
ModuleNotFoundError: No module named 'lts_workflows_sm_scrnaseq'  Hi...: No module named 'lts_workflows_sm_scrnaseq' How to remove the ModuleNotFoundError: No module named 'lts_workflows_sm_scrnaseq' error? Thanks  
ModuleNotFoundError: No module named 'mirage-django-lts'
ModuleNotFoundError: No module named 'mirage-django-lts'  Hi, My... named 'mirage-django-lts' How to remove the ModuleNotFoundError: No module named 'mirage-django-lts' error? Thanks   Hi, In your
Install Spark on Ubuntu 18.04
How to Install Spark on Ubuntu 18.04 and test? Installing Apache Spark latest.... This way you don't need extra machine for installing Ubuntu OS and you can... restart vm and then login into your Ubuntu 18.04 system. Step 3: Open Ubuntu
Install Spark on Ubuntu 18.04
How to Install Spark on Ubuntu 18.04 and test? Installing Apache Spark latest.... This way you don't need extra machine for installing Ubuntu OS and you can... restart vm and then login into your Ubuntu 18.04 system. Step 3: Open Ubuntu
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

Ads