From d940990081d429c027c60609565ebf9e50e062c3 Mon Sep 17 00:00:00 2001 From: Carl Byington Date: Wed, 29 Nov 2017 10:45:09 -0800 Subject: [PATCH 1/1] add google-authenticator to the iso --- .../hooks/99-google_authenticator.chroot | 7 +++++++ .../package-lists/vyos-utils.list.chroot | 1 + 2 files changed, 8 insertions(+), 0 deletions(-) create mode 100644 data/live-build-config/hooks/99-google_authenticator.chroot diff --git a/data/live-build-config/hooks/99-google_authenticator.chroot b/data/live-build-config/hooks/99-google_authenticator.chroot new file mode 100644 index 0000000..7f0b9a0 --- /dev/null +++ b/data/live-build-config/hooks/99-google_authenticator.chroot @@ -0,0 +1,7 @@ +#!/bin/sh + +echo I: setup google authenticator + +sed -i -e '1iauth required pam_google_authenticator.so nullok' /etc/pam.d/sshd +sed -i -e 's/^ChallengeResponseAuthentication no/ChallengeResponseAuthentication yes/g' /etc/ssh/sshd_config + diff --git a/data/live-build-config/package-lists/vyos-utils.list.chroot b/data/live-build-config/package-lists/vyos-utils.list.chroot index 98d6a75..8eab280 100644 --- a/data/live-build-config/package-lists/vyos-utils.list.chroot +++ b/data/live-build-config/package-lists/vyos-utils.list.chroot @@ -13,3 +13,4 @@ nano vim-tiny screen minicom +libpam-google-authenticator -- 1.7.1 From 3d08cae7441e1b020ea821ec13ab30814a886677 Mon Sep 17 00:00:00 2001 From: Carl Byington Date: Wed, 29 Nov 2017 16:19:22 -0800 Subject: [PATCH 1/1] fix permissions on chroot script --- 0 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 data/live-build-config/hooks/99-google_authenticator.chroot diff --git a/data/live-build-config/hooks/99-google_authenticator.chroot b/data/live-build-config/hooks/99-google_authenticator.chroot old mode 100644 new mode 100755 -- 1.7.1 From cc69b09921474f2053cc76030e87c9e1b773ba19 Mon Sep 17 00:00:00 2001 From: Carl Byington Date: Fri, 1 Dec 2017 10:48:05 -0800 Subject: [PATCH 1/1] google authenticator might need qrencode to avoid leaking the generated key to google.com/chart --- .../package-lists/vyos-utils.list.chroot | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/data/live-build-config/package-lists/vyos-utils.list.chroot b/data/live-build-config/package-lists/vyos-utils.list.chroot index 8eab280..661089e 100644 --- a/data/live-build-config/package-lists/vyos-utils.list.chroot +++ b/data/live-build-config/package-lists/vyos-utils.list.chroot @@ -14,3 +14,4 @@ vim-tiny screen minicom libpam-google-authenticator +qrencode -- 1.7.1