Showing posts with label OpenSSH. Show all posts
Showing posts with label OpenSSH. Show all posts

Friday, November 4, 2016

Ubuntu: Installing OpenSSH Server

Command:

$ dpkg -l | grep "openssh-server"


Result:


Command:

$ sudo apt-get install openssh-server


Result:

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libwrap0 ncurses-term openssh-sftp-server python3-requests python3-urllib3
  ssh-import-id tcpd
Suggested packages:
  ssh-askpass rssh molly-guard monkeysphere python3-ndg-httpsclient
  python3-openssl python3-pyasn1 python3-socks
The following NEW packages will be installed:
  libwrap0 ncurses-term openssh-server openssh-sftp-server python3-requests
  python3-urllib3 ssh-import-id tcpd
0 upgraded, 8 newly installed, 0 to remove and 28 not upgraded.
Need to get 821 kB of archives.
After this operation, 5,938 kB of additional disk space will be used.
Do you want to continue? [Y/n] Get:1 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 libwrap0 amd64 7.6.q-25 [46.2 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 ncurses-term all 6.0+20160625-1ubuntu1 [243 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 openssh-sftp-server amd64 1:7.3p1-1 [39.8 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 openssh-server amd64 1:7.3p1-1 [342 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 python3-urllib3 all 1.15.1-2 [60.5 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 python3-requests all 2.10.0-2 [57.0 kB]
Get:7 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 tcpd amd64 7.6.q-25 [23.0 kB]
Get:8 http://jp.archive.ubuntu.com/ubuntu yakkety/main amd64 ssh-import-id all 5.6-0ubuntu1 [10.2 kB]
Preconfiguring packages ...
Fetched 821 kB in 0s (1,779 kB/s)
Selecting previously unselected package libwrap0:amd64.
(Reading database ... 75%
(Reading database ... 58978 files and directories currently installed.)
Preparing to unpack .../0-libwrap0_7.6.q-25_amd64.deb ...
Unpacking libwrap0:amd64 (7.6.q-25) ...
Selecting previously unselected package ncurses-term.
Preparing to unpack .../1-ncurses-term_6.0+20160625-1ubuntu1_all.deb ...
Unpacking ncurses-term (6.0+20160625-1ubuntu1) ...

Selecting previously unselected package openssh-sftp-server.
Preparing to unpack .../2-openssh-sftp-server_1%3a7.3p1-1_amd64.deb ...
Unpacking openssh-sftp-server (1:7.3p1-1) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../3-openssh-server_1%3a7.3p1-1_amd64.deb ...
Unpacking openssh-server (1:7.3p1-1) ...
Selecting previously unselected package python3-urllib3.
Preparing to unpack .../4-python3-urllib3_1.15.1-2_all.deb ...
Unpacking python3-urllib3 (1.15.1-2) ...
Selecting previously unselected package python3-requests.
Preparing to unpack .../5-python3-requests_2.10.0-2_all.deb ...
Unpacking python3-requests (2.10.0-2) ...
Selecting previously unselected package tcpd.
Preparing to unpack .../6-tcpd_7.6.q-25_amd64.deb ...
Unpacking tcpd (7.6.q-25) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../7-ssh-import-id_5.6-0ubuntu1_all.deb ...

Unpacking ssh-import-id (5.6-0ubuntu1) ...
Setting up ncurses-term (6.0+20160625-1ubuntu1) ...
Processing triggers for ufw (0.35-2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up openssh-sftp-server (1:7.3p1-1) ...
Processing triggers for systemd (231-9git1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python3-urllib3 (1.15.1-2) ...
Setting up libwrap0:amd64 (7.6.q-25) ...
Setting up tcpd (7.6.q-25) ...
Setting up openssh-server (1:7.3p1-1) ...
Creating SSH2 RSA key; this may take some time ...

2048 SHA256:A11tAAfk11AAAA1xhmuAA1hr/tAAnmqqdeAc1A1zAAA root@ubuntu2 (RSA)
Creating SSH2 ECDSA key; this may take some time ...
256 SHA256:AhAjtjj/nAyA11A+kp+A/+1+11AtAAAi1AA1AAAvswA root@ubuntu2 (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 SHA256:AAc11dtAtAA1nAAAjn1sAmLhAs/s0hsA11rAA+Al111 root@ubuntu2 (ED25519)
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
Setting up python3-requests (2.10.0-2) ...
Setting up ssh-import-id (5.6-0ubuntu1) ...
Processing triggers for libc-bin (2.24-3ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (231-9git1) ...
Processing triggers for ufw (0.35-2) ...


Command:

$ dpkg -l | grep "openssh-server"


Result:

ii  openssh-server                             1:7.3p1-1                               amd64        secure shell (SSH) server, for secure access from remote machines