Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
2c0807c7
Commit
2c0807c7
authored
May 02, 2017
by
Stéphane Graber
Committed by
GitHub
May 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1531 from mar-kolya/master
Change sshd template to work with Ubuntu 17.04
parents
c0614b0c
a0430b2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lxc-sshd.in
templates/lxc-sshd.in
+7
-7
No files found.
templates/lxc-sshd.in
View file @
2c0807c7
...
...
@@ -38,7 +38,6 @@ install_sshd()
rootfs
=
$1
tree
=
"
\
$rootfs
/var/run/sshd
\
$rootfs
/var/empty/sshd
\
$rootfs
/var/lib/empty/sshd
\
$rootfs
/etc/init.d
\
...
...
@@ -46,7 +45,7 @@ $rootfs/etc/rc.d \
$rootfs
/etc/ssh
\
$rootfs
/etc/sysconfig/network-scripts
\
$rootfs
/dev/shm
\
$rootfs
/run/s
hm
\
$rootfs
/run/s
shd
\
$rootfs
/proc
\
$rootfs
/sys
\
$rootfs
/bin
\
...
...
@@ -63,6 +62,11 @@ $rootfs/lib64"
return
1
fi
ln
-s
/run
$rootfs
/var/run
if
[
$?
-ne
0
]
;
then
return
1
fi
return
0
}
...
...
@@ -90,17 +94,13 @@ Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords yes
ChallengeResponseAuthentication no
...
...
@@ -141,7 +141,7 @@ lxc.mount.entry = /lib lib none ro,bind 0 0
lxc.mount.entry = /bin bin none ro,bind 0 0
lxc.mount.entry = /usr usr none ro,bind 0 0
lxc.mount.entry = /sbin sbin none ro,bind 0 0
lxc.mount.entry = tmpfs
var/
run/sshd tmpfs mode=0644 0 0
lxc.mount.entry = tmpfs run/sshd tmpfs mode=0644 0 0
lxc.mount.entry = @LXCTEMPLATEDIR@/lxc-sshd
$init_path
none ro,bind 0 0
lxc.mount.entry = /etc/init.d etc/init.d none ro,bind 0 0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment