Home>

Record the installation and use of openssh-server on ubuntu17.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
[email protected]:~ $cat/etc/issue
ubuntu 17.10 \ n \ l
[email protected]:~ $
[email protected]:~ $lsb_release -a
no lsb modules are available.
distributor id:ubuntu
description:ubuntu 17.10
release:17.10
codename:artful
[email protected]:~ $

17.10's ubuntu codenamed artful aardvark was officially released on October 19, 2017.Is the first version to replace gnome,But this is not a lts version, it will be supported until August 2018, it is a transitional version before the lts version of ubuntu 2018.The installation of openssh-server basically has a very low impact on the ubuntu version.The basic steps are generally the same.

installation steps

Follow the installation steps below

Operation log

Here again the logs captured in the installed state,apt install shows different

[email protected]:~ $sudo su
[sudo] password for devops:
[email protected]:/home/devops #
[email protected]:/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.
[email protected]:/home/devops #
[email protected]:/home/devops #ssh -v
openssh_7.5p1 ubuntu-10ubuntu0.1, openssl 1.0.2g 1 mar 2016
[email protected]:/home/devops #
[email protected]:/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-03 07: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 03 07:58:44 ubuntu systemd [1]:starting openbsd secure shell server ...
mar 03 07:58:44 ubuntu systemd [1]:started openbsd secure shell server.
mar 03 07:58:44 ubuntu sshd [3179]:server listening on 0.0.0.0 port 22.
mar 03 07:58:44 ubuntu sshd [3179]:server listening on ::port 22.
[email protected]:/home/devops #
[email protected]:/home/devops #/etc/init.d/ssh restart
[ok] restarting ssh (via systemctl):ssh.service.
[email protected]:/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 3 07:43:23 2018 from 192.168.31.242
[email protected]:~ $

to sum up

  • Previous Detailed explanation of Python's HTTP request method with header
  • Next Python multi-image merge PDF method