Merge branch 'main' of github.com:Rublon/rublon-ssh-cpp-private
This commit is contained in:
commit
82212e530a
12
os/centos/stream9/Vagrantfile
vendored
12
os/centos/stream9/Vagrantfile
vendored
@ -36,13 +36,17 @@ Vagrant.configure("2") do |config|
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
|
||||
yum update
|
||||
yum install -y gcc openssl-devel curl-devel pam-devel rapidjson-devel cmake
|
||||
yum install -y gcc openssl-devel curl-devel pam-devel git rapidjson-devel cmake
|
||||
|
||||
# Building project
|
||||
# Build project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
|
||||
# Install
|
||||
sudo cmake --install build
|
||||
|
||||
sudo install -m 644 rsc/rublon.config.defaults /etc/rublon.config
|
||||
|
||||
# Register Rublon pam
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
@ -50,7 +54,5 @@ Vagrant.configure("2") do |config|
|
||||
|
||||
systemctl restart sshd.service
|
||||
SHELL
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
47
os/debian/11/Vagrantfile
vendored
47
os/debian/11/Vagrantfile
vendored
@ -35,27 +35,32 @@ Vagrant.configure("2") do |config|
|
||||
# documentation for more information about their specific syntax and use.
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
|
||||
DEBIAN_FRONTEND=noniteracactive\
|
||||
apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
build-essential \
|
||||
openssh-server \
|
||||
libcurl4-openssl-dev \
|
||||
libpam0g-dev \
|
||||
libssl-dev \
|
||||
rapidjson-dev \
|
||||
cmake
|
||||
DEBIAN_FRONTEND=noniteracactive\
|
||||
apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
build-essential \
|
||||
openssh-server \
|
||||
libcurl4-openssl-dev \
|
||||
libpam0g-dev \
|
||||
libssl-dev \
|
||||
git \
|
||||
rapidjson-dev \
|
||||
cmake
|
||||
|
||||
# Building project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
sudo cmake --install build
|
||||
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
||||
# Build project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
|
||||
service sshd restart
|
||||
SHELL
|
||||
# Install
|
||||
sudo cmake --install build
|
||||
sudo install -m 644 rsc/rublon.config.defaults /etc/rublon.config
|
||||
|
||||
# Register Rublon pam
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
||||
|
||||
service sshd restart
|
||||
SHELL
|
||||
end
|
||||
|
||||
46
os/debian/12/Vagrantfile
vendored
46
os/debian/12/Vagrantfile
vendored
@ -35,27 +35,31 @@ Vagrant.configure("2") do |config|
|
||||
# documentation for more information about their specific syntax and use.
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
|
||||
DEBIAN_FRONTEND=noniteracactive\
|
||||
apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
build-essential \
|
||||
openssh-server \
|
||||
libcurl4-openssl-dev \
|
||||
libpam0g-dev \
|
||||
libssl-dev \
|
||||
rapidjson-dev \
|
||||
cmake
|
||||
DEBIAN_FRONTEND=noniteracactive\
|
||||
apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
build-essential \
|
||||
openssh-server \
|
||||
libcurl4-openssl-dev \
|
||||
libpam0g-dev \
|
||||
libssl-dev \
|
||||
git \
|
||||
rapidjson-dev \
|
||||
cmake
|
||||
|
||||
# Building project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
sudo cmake --install build
|
||||
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
||||
# Build project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
|
||||
service sshd restart
|
||||
SHELL
|
||||
# Install
|
||||
sudo cmake --install build
|
||||
sudo install -m 644 rsc/rublon.config.defaults /etc/rublon.config
|
||||
|
||||
# Register Rublon pam
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
||||
|
||||
service sshd restart
|
||||
end
|
||||
|
||||
47
os/ubuntu/20.04/Vagrantfile
vendored
47
os/ubuntu/20.04/Vagrantfile
vendored
@ -35,27 +35,32 @@ Vagrant.configure("2") do |config|
|
||||
# documentation for more information about their specific syntax and use.
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
|
||||
DEBIAN_FRONTEND=noniteracactive\
|
||||
apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
build-essential \
|
||||
openssh-server \
|
||||
libcurl4-openssl-dev \
|
||||
libpam0g-dev \
|
||||
libssl-dev \
|
||||
rapidjson-dev \
|
||||
cmake
|
||||
DEBIAN_FRONTEND=noniteracactive\
|
||||
apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
build-essential \
|
||||
openssh-server \
|
||||
libcurl4-openssl-dev \
|
||||
libpam0g-dev \
|
||||
libssl-dev \
|
||||
git \
|
||||
rapidjson-dev \
|
||||
cmake
|
||||
|
||||
# Building project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
sudo cmake --install build
|
||||
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
||||
# Build project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
|
||||
service sshd restart
|
||||
SHELL
|
||||
# Install
|
||||
sudo cmake --install build
|
||||
sudo install -m 644 rsc/rublon.config.defaults /etc/rublon.config
|
||||
|
||||
# Register Rublon pam
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
||||
|
||||
service sshd restart
|
||||
SHELL
|
||||
end
|
||||
|
||||
49
os/ubuntu/22.04/Vagrantfile
vendored
49
os/ubuntu/22.04/Vagrantfile
vendored
@ -34,28 +34,33 @@ Vagrant.configure("2") do |config|
|
||||
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
|
||||
# documentation for more information about their specific syntax and use.
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
|
||||
DEBIAN_FRONTEND=noniteracactive\
|
||||
apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
build-essential \
|
||||
openssh-server \
|
||||
libcurl4-openssl-dev \
|
||||
libpam0g-dev \
|
||||
libssl-dev \
|
||||
rapidjson-dev \
|
||||
cmake
|
||||
|
||||
# Building project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
sudo cmake --install build
|
||||
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
||||
DEBIAN_FRONTEND=noniteracactive\
|
||||
apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
build-essential \
|
||||
openssh-server \
|
||||
libcurl4-openssl-dev \
|
||||
libpam0g-dev \
|
||||
libssl-dev \
|
||||
git \
|
||||
rapidjson-dev \
|
||||
cmake
|
||||
|
||||
service sshd restart
|
||||
SHELL
|
||||
# Build project
|
||||
cd /home/vagrant/Rublon-Linux
|
||||
cmake -B build && cmake --build build
|
||||
|
||||
# Install
|
||||
sudo cmake --install build
|
||||
sudo install -m 644 rsc/rublon.config.defaults /etc/rublon.config
|
||||
|
||||
# Register Rublon pam
|
||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
||||
|
||||
service sshd restart
|
||||
SHELL
|
||||
end
|
||||
|
||||
10
rsc/rublon.config.defaults
Normal file
10
rsc/rublon.config.defaults
Normal file
@ -0,0 +1,10 @@
|
||||
systemToken=
|
||||
secretKey=
|
||||
userDomain=
|
||||
rublonApiServer=https://core.rublon.net
|
||||
failMode=bypass
|
||||
offlineBypass=true
|
||||
prompt=1
|
||||
logging=true
|
||||
enablePasswdEmail=true
|
||||
autopushPrompt=false
|
||||
Loading…
Reference in New Issue
Block a user