Browse Source

added ssh connection

master
Dan 1 week ago
parent
commit
e280897c25
Signed by: dan GPG Key ID: 7DFC51AC7A70FBAB
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      airootfs/root/pwoss-server.sh

+ 17
- 0
airootfs/root/pwoss-server.sh View File

@ -53,6 +53,9 @@ ENCRYPTION="YES" # Select "YES" OR "NO" whether you want encr
## Timezone
TIMEZONE="Pacific/Auckland" # Your timezone (Command='timedatectl list-timezones')
## SSH
SSH="YES" # Allow ssh connection after the installation. Port 22.
## Microcode # More info at https://wiki.archlinux.org/index.php/Microcode
#MICROCODE="amd-ucode" # AMD CPU (choose amd OR intel)
#MICROCODE="intel-ucode" # Intel CPU (choose amd OR intel)
@ -616,6 +619,20 @@ $PASSWORD # enter password
$PASSWORD # retype password
PASSWD_CMDS
# SSH Access
if [[ $SSH == "YES" ]]
then
cp /etc/ssh/sshd_config /mnt/etc/ssh/sshd_config
elif [ $SSH == "NO" ]
then
:
else
echo "Unknown SSH access selected"
exit
fi
# User configs
## Copy PwOSS script to home for further installations
cp -f home/user/pwoss-server-conf.sh /mnt/home/$USERNAME/


Loading…
Cancel
Save