# libguestfs virt-p2v test script
# Copyright (C) 2014-2017 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

# 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
