Ubuntu basic settings: introduction to the installation and use of openssh-server

Record the installation and use of openssh-server for Ubuntu 17.10. After installation, you can use ssh to log in to Ubuntu, so it is one of the basic settings of Ubuntu.

a

Ubuntu version: 17.10
devops@ubuntu:~$ cat /etc/issue
Ubuntu 17.10 \n \l
devops@ubuntu:~$ 
devops@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:  Ubuntu 17.10
Release:17.10
Codename:  artful
devops@ubuntu:~$

17.10 The Ubuntu codename Artful Aardvark was officially released on October 19, 2017. It is the first version to replace GNOME, but this is not an LTS version. It will be supported until August 2018. It is a transition before the LTS version of Ubuntu in 2018. version. The installation of openssh-server basically has a very low impact on the Ubuntu version, and the basic operation steps are roughly the same.

installation steps

Follow the installation steps below to install

Operation log

Here is the log captured in the installed state, the display of apt install will be different

devops@ubuntu:~$ sudo su
[ sudo] password for devops: 
root@ubuntu:/home/devops# 
root@ubuntu:/home/devops# apt install openssh-server
Reading package lists... Done
Building dependency tree    
Reading state information... Done
openssh-server is already the newest version(1:7.5p1-10ubuntu0.1).0 upgraded,0 newly installed,0 to remove and 55 not upgraded.
root@ubuntu:/home/devops# 
root@ubuntu:/home/devops# ssh -V
OpenSSH_7.5p1 Ubuntu-10ubuntu0.1, OpenSSL 1.0.2g 1 Mar 2016
root@ubuntu:/home/devops# 
root@ubuntu:/home/devops# /etc/init.d/ssh status
● ssh.service - OpenBSD Secure Shell server
 Loaded:loaded(/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
 Active:active(running) since Sat 2018-03-0307:58:44 CST; 51min ago
 Process:3072 ExecReload=/bin/kill -HUP $MAINPID(code=exited, status=0/SUCCESS)
 Process:3071 ExecReload=/usr/sbin/sshd -t(code=exited, status=0/SUCCESS)
 Process:3167 ExecStartPre=/usr/sbin/sshd -t(code=exited, status=0/SUCCESS)
 Main PID:3179(sshd)
 Tasks:1(limit:4915)
 Memory:1.0M
 CPU: 7ms
 CGroup:/system.slice/ssh.service
  └─3179/usr/sbin/sshd -D
Mar 0307:58:44 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
Mar 0307:58:44 ubuntu systemd[1]: Started OpenBSD Secure Shell server.
Mar 0307:58:44 ubuntu sshd[3179]: Server listening on 0.0.0.0 port 22.
Mar 0307:58:44 ubuntu sshd[3179]: Server listening on :: port 22.
root@ubuntu:/home/devops# 
root@ubuntu:/home/devops# /etc/init.d/ssh restart
[ ok ] Restarting ssh(via systemctl): ssh.service.
root@ubuntu:/home/devops#

Ssh connection from terminal

liumiaocn:~ liumiao$ ssh [email protected]
[email protected]'s password: 
Welcome to Ubuntu 17.10(GNU/Linux 4.13.0-21-generic x86_64)* Documentation: https://help.ubuntu.com
 * Management:   https://landscape.canonical.com
 * Support:    https://ubuntu.com/advantage
58 packages can be updated.32 updates are security updates.
Last login: Sat Mar 307:43:232018from192.168.31.242
devops@ubuntu:~$

Recommended Posts

Ubuntu basic settings: introduction to the installation and use of openssh-server
Introduction to the use of Hanlp in ubuntu
Detailed explanation of the installation and use of SSH in the Ubuntu environment
The basic configuration and interface beautification of Ubuntu
Installation and use of SSH in Ubuntu environment
Installation and use of GDAL in Python under Ubuntu
Introduction to CentOS7 installation process of openjdk, tomcat and mysql
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Common exceptions and solutions in the use and development of Ubuntu system
How to fix the problem of missing system settings on Ubuntu 14.04
ubuntu Docker installation and deployment of Rancher
Installation and use of Mysql under CentOS
Linux overview of Python automated operation and maintenance and the ultimate guide to virtual machine installation and use
Installation and uninstallation of CUDA under Ubuntu 16.04
Ubuntu18.04 Server version installation and use (graphic)
Installation and deployment of Nginx in Ubuntu
The apt-get command of Ubuntu basic tutorial
The implementation of the Ubuntu18.04 installation Pycharm tutorial
Summary of methods to use Evernote under Ubuntu 14.04
Installation of pulseaudio and API usage under Ubuntu 12.04
Use the command to solve the Ubuntu projector problem:
How to install and use Docker on Ubuntu 20.04
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
The road to reinstallation of ubuntu 18.04 from scratch
How to install and use BaasBox on Ubuntu 14.04
The use of crontab for ubuntu scheduled tasks
How to install and use PostgreSQL on Ubuntu 16.04
Basic configuration and common software installation after ubuntu 18.04 installation
Installation, configuration and uninstallation of GitLab in Ubuntu19.1
How to install and use Docker on Ubuntu 16.04
The default installation path of apt-get install of ubuntu (transfer)
How to create and use MongoDB backups on Ubuntu 14.04
Use the command line to detect the Ubuntu version method
Ubuntu16.04 installation partition settings
How to turn the language of Ubuntu into Chinese? ?
Use Cobbler to automate batch deployment of CentOS / Ubuntu
How to install and use MySQL Workbench on Ubuntu 18.04
How to understand the introduction of packages in Python
Installation and simple practice of MySQL in ubuntu environment (1)
Ubuntu12 step-by-step installation and configuration (system, FTP, TELNET.. settings)
One, docker into the pit (win10 and Ubuntu installation)
Installation and usage instructions of rz/sz command under ubuntu
[Share] Solve the problem of failed installation of Vitis 2019.2 on Ubuntu 16.04
CentOS7 installation and maintenance of nginx from entry to master
Xshell and Xftp fail to connect to the virtual machine Ubuntu
Ubuntu adds the Chrome icon to the correct posture of the launcher
ubuntu 12.04 configure the kernel crash to automatically restart and dump
Python introduction and environment installation
centos7 kvm installation and use
CentOS7 postgresql installation and use
Use virtualbox to deploy ubuntu
Ubuntu PostgreSQL installation and configuration
Centos7 elk7.1.1 installation and use
Detailed explanation of quick installation and configuration of Subversion (SVN) under Ubuntu
Use CentOS 7.5 to uninstall the built-in jdk and install your own JDK1.8
The processing of the ubuntu snapd process continuously writing to the hard disk
​Ubuntu Class|What is a key ring and how to use it?
How to extend the root directory of LVM under Ubuntu system
Install the latest version of Thunderbird and exchange plugins under ubuntu