-
Notifications
You must be signed in to change notification settings - Fork 7
/
test-virt-p2v-pxe.sshd_config.in
42 lines (34 loc) · 1.43 KB
/
test-virt-p2v-pxe.sshd_config.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# libguestfs virt-p2v test script
# Copyright (C) 2014-2019 Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Minimal sshd_config used by test-virt-p2v-pxe.ssh when it runs
# a captive sshd.
#
# This file is processed by awk. See p2v/Makefile.am.
# Choose a random high port number.
Port __RANDOM_PORT__
# Only allow connections from loopback.
ListenAddress [::1]
ListenAddress 127.0.0.1
# Privilege separation breaks non-root usage of sshd.
UsePrivilegeSeparation no
# Use local files instead of inaccessible global configuration.
PidFile __abs_builddir__/test-virt-p2v-pxe.sshd.pid
HostKey __abs_builddir__/test-virt-p2v-pxe.ssh_host_rsa_key
AuthorizedKeysFile __abs_builddir__/test-virt-p2v-pxe.authorized_keys
# Don't check file permissions.
StrictModes no
# Allow the environment to be set in the authorized_keys file above.
PermitUserEnvironment yes