Skip to content

Instantly share code, notes, and snippets.

@marmarek
Created October 10, 2015 17:28
Show Gist options
  • Save marmarek/b227dcff130862fa5b48 to your computer and use it in GitHub Desktop.
Save marmarek/b227dcff130862fa5b48 to your computer and use it in GitHub Desktop.
openssh-server installed in debian-8 chroot
[user@testvm ~]$ sudo debootstrap jessie $PWD/debian-8 http://ftp.pl.debian.org/debian
(...)
[user@testvm ~]$ sudo chroot debian-8 apt-get install openssh-server
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
krb5-locales libbsd0 libedit2 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libwrap0 libx11-6 libx11-data libxau6
libxcb1 libxdmcp6 libxext6 libxmuu1 ncurses-term openssh-client openssh-sftp-server tcpd xauth
Suggested packages:
krb5-doc krb5-user ssh-askpass libpam-ssh keychain monkeysphere rssh molly-guard ufw
The following NEW packages will be installed:
krb5-locales libbsd0 libedit2 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libwrap0 libx11-6 libx11-data libxau6
libxcb1 libxdmcp6 libxext6 libxmuu1 ncurses-term openssh-client openssh-server openssh-sftp-server tcpd xauth
0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 6092 kB of archives.
After this operation, 16.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.pl.debian.org/debian/ jessie/main libbsd0 amd64 0.7.0-2 [67.9 kB]
Get:2 http://ftp.pl.debian.org/debian/ jessie/main libedit2 amd64 3.1-20140620-2 [85.1 kB]
Get:3 http://ftp.pl.debian.org/debian/ jessie/main libkeyutils1 amd64 1.5.9-5+b1 [12.0 kB]
Get:4 http://ftp.pl.debian.org/debian/ jessie/main libkrb5support0 amd64 1.12.1+dfsg-19 [58.5 kB]
Get:5 http://ftp.pl.debian.org/debian/ jessie/main libk5crypto3 amd64 1.12.1+dfsg-19 [115 kB]
Get:6 http://ftp.pl.debian.org/debian/ jessie/main libkrb5-3 amd64 1.12.1+dfsg-19 [303 kB]
Get:7 http://ftp.pl.debian.org/debian/ jessie/main libgssapi-krb5-2 amd64 1.12.1+dfsg-19 [150 kB]
Get:8 http://ftp.pl.debian.org/debian/ jessie/main libwrap0 amd64 7.6.q-25 [58.5 kB]
Get:9 http://ftp.pl.debian.org/debian/ jessie/main libxau6 amd64 1:1.0.8-1 [20.7 kB]
Get:10 http://ftp.pl.debian.org/debian/ jessie/main libxdmcp6 amd64 1:1.1.1-1+b1 [24.9 kB]
Get:11 http://ftp.pl.debian.org/debian/ jessie/main libxcb1 amd64 1.10-3+b1 [44.4 kB]
Get:12 http://ftp.pl.debian.org/debian/ jessie/main libx11-data all 2:1.6.2-3 [126 kB]
Get:13 http://ftp.pl.debian.org/debian/ jessie/main libx11-6 amd64 2:1.6.2-3 [729 kB]
Get:14 http://ftp.pl.debian.org/debian/ jessie/main libxext6 amd64 2:1.3.3-1 [52.7 kB]
Get:15 http://ftp.pl.debian.org/debian/ jessie/main libxmuu1 amd64 2:1.1.2-1 [23.3 kB]
Get:16 http://ftp.pl.debian.org/debian/ jessie/main krb5-locales all 1.12.1+dfsg-19 [2648 kB]
Get:17 http://ftp.pl.debian.org/debian/ jessie/main ncurses-term all 5.9+20140913-1 [453 kB]
Get:18 http://ftp.pl.debian.org/debian/ jessie/main openssh-client amd64 1:6.7p1-5 [691 kB]
Get:19 http://ftp.pl.debian.org/debian/ jessie/main openssh-sftp-server amd64 1:6.7p1-5 [37.9 kB]
Get:20 http://ftp.pl.debian.org/debian/ jessie/main openssh-server amd64 1:6.7p1-5 [330 kB]
Get:21 http://ftp.pl.debian.org/debian/ jessie/main tcpd amd64 7.6.q-25 [22.9 kB]
Get:22 http://ftp.pl.debian.org/debian/ jessie/main xauth amd64 1:1.0.9-1 [38.2 kB]
Fetched 6092 kB in 2s (2704 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
Selecting previously unselected package libbsd0:amd64.
(Reading database ... 9726 files and directories currently installed.)
Preparing to unpack .../libbsd0_0.7.0-2_amd64.deb ...
Unpacking libbsd0:amd64 (0.7.0-2) ...
Selecting previously unselected package libedit2:amd64.
Preparing to unpack .../libedit2_3.1-20140620-2_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20140620-2) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.9-5+b1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-5+b1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.12.1+dfsg-19_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.12.1+dfsg-19) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.12.1+dfsg-19_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.12.1+dfsg-19) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.12.1+dfsg-19_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.12.1+dfsg-19) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.12.1+dfsg-19_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.12.1+dfsg-19) ...
Selecting previously unselected package libwrap0:amd64.
Preparing to unpack .../libwrap0_7.6.q-25_amd64.deb ...
Unpacking libwrap0:amd64 (7.6.q-25) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../libxau6_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../libxdmcp6_1%3a1.1.1-1+b1_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.1-1+b1) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../libxcb1_1.10-3+b1_amd64.deb ...
Unpacking libxcb1:amd64 (1.10-3+b1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../libx11-data_2%3a1.6.2-3_all.deb ...
Unpacking libx11-data (2:1.6.2-3) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../libx11-6_2%3a1.6.2-3_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.2-3) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../libxext6_2%3a1.3.3-1_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.3-1) ...
Selecting previously unselected package libxmuu1:amd64.
Preparing to unpack .../libxmuu1_2%3a1.1.2-1_amd64.deb ...
Unpacking libxmuu1:amd64 (2:1.1.2-1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../krb5-locales_1.12.1+dfsg-19_all.deb ...
Unpacking krb5-locales (1.12.1+dfsg-19) ...
Selecting previously unselected package ncurses-term.
Preparing to unpack .../ncurses-term_5.9+20140913-1_all.deb ...
Unpacking ncurses-term (5.9+20140913-1) ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../openssh-client_1%3a6.7p1-5_amd64.deb ...
Unpacking openssh-client (1:6.7p1-5) ...
Selecting previously unselected package openssh-sftp-server.
Preparing to unpack .../openssh-sftp-server_1%3a6.7p1-5_amd64.deb ...
Unpacking openssh-sftp-server (1:6.7p1-5) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a6.7p1-5_amd64.deb ...
Unpacking openssh-server (1:6.7p1-5) ...
Selecting previously unselected package tcpd.
Preparing to unpack .../tcpd_7.6.q-25_amd64.deb ...
Unpacking tcpd (7.6.q-25) ...
Selecting previously unselected package xauth.
Preparing to unpack .../xauth_1%3a1.0.9-1_amd64.deb ...
Unpacking xauth (1:1.0.9-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u2) ...
Setting up libbsd0:amd64 (0.7.0-2) ...
Setting up libedit2:amd64 (3.1-20140620-2) ...
Setting up libkeyutils1:amd64 (1.5.9-5+b1) ...
Setting up libkrb5support0:amd64 (1.12.1+dfsg-19) ...
Setting up libk5crypto3:amd64 (1.12.1+dfsg-19) ...
Setting up libkrb5-3:amd64 (1.12.1+dfsg-19) ...
Setting up libgssapi-krb5-2:amd64 (1.12.1+dfsg-19) ...
Setting up libwrap0:amd64 (7.6.q-25) ...
Setting up libxau6:amd64 (1:1.0.8-1) ...
Setting up libxdmcp6:amd64 (1:1.1.1-1+b1) ...
Setting up libxcb1:amd64 (1.10-3+b1) ...
Setting up libx11-data (2:1.6.2-3) ...
Setting up libx11-6:amd64 (2:1.6.2-3) ...
Setting up libxext6:amd64 (2:1.3.3-1) ...
Setting up libxmuu1:amd64 (2:1.1.2-1) ...
Setting up krb5-locales (1.12.1+dfsg-19) ...
Setting up ncurses-term (5.9+20140913-1) ...
Setting up openssh-client (1:6.7p1-5) ...
Setting up openssh-sftp-server (1:6.7p1-5) ...
Setting up openssh-server (1:6.7p1-5) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Creating SSH2 RSA key; this may take some time ...
2048 ee:0e:9b:54:45:88:84:17:96:ba:d4:0c:6d:35:8f:bb /etc/ssh/ssh_host_rsa_key.pub (RSA)
Creating SSH2 DSA key; this may take some time ...
1024 6a:a4:91:7f:46:b1:cc:49:f5:b5:95:b3:36:34:8e:58 /etc/ssh/ssh_host_dsa_key.pub (DSA)
Creating SSH2 ECDSA key; this may take some time ...
256 28:7e:56:fb:5a:85:ec:1d:a5:40:a2:ee:5a:4c:f6:ea /etc/ssh/ssh_host_ecdsa_key.pub (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 de:1f:3a:6d:85:a7:2c:f8:dc:9c:52:48:24:e5:95:f0 /etc/ssh/ssh_host_ed25519_key.pub (ED25519)
Failed to read /proc/cmdline. Ignoring: No such file or directory
[ ok ] Starting OpenBSD Secure Shell server: sshd.
Setting up tcpd (7.6.q-25) ...
Setting up xauth (1:1.0.9-1) ...
Processing triggers for libc-bin (2.19-18+deb8u1) ...
Processing triggers for systemd (215-17+deb8u2) ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment