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
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
|
|
||||||
yum update
|
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
|
cd /home/vagrant/Rublon-Linux
|
||||||
cmake -B build && cmake --build build
|
cmake -B build && cmake --build build
|
||||||
|
|
||||||
|
# Install
|
||||||
sudo cmake --install build
|
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/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
||||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication 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 '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
|
systemctl restart sshd.service
|
||||||
SHELL
|
SHELL
|
||||||
|
|
||||||
|
|
||||||
end
|
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.
|
# documentation for more information about their specific syntax and use.
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noniteracactive\
|
DEBIAN_FRONTEND=noniteracactive\
|
||||||
apt-get update && apt-get install -y \
|
apt-get update && apt-get install -y \
|
||||||
gcc \
|
gcc \
|
||||||
build-essential \
|
build-essential \
|
||||||
openssh-server \
|
openssh-server \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libpam0g-dev \
|
libpam0g-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
rapidjson-dev \
|
git \
|
||||||
cmake
|
rapidjson-dev \
|
||||||
|
cmake
|
||||||
|
|
||||||
# Building project
|
# Build project
|
||||||
cd /home/vagrant/Rublon-Linux
|
cd /home/vagrant/Rublon-Linux
|
||||||
cmake -B build && cmake --build build
|
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
|
|
||||||
|
|
||||||
service sshd restart
|
# Install
|
||||||
SHELL
|
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
|
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.
|
# documentation for more information about their specific syntax and use.
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noniteracactive\
|
DEBIAN_FRONTEND=noniteracactive\
|
||||||
apt-get update && apt-get install -y \
|
apt-get update && apt-get install -y \
|
||||||
gcc \
|
gcc \
|
||||||
build-essential \
|
build-essential \
|
||||||
openssh-server \
|
openssh-server \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libpam0g-dev \
|
libpam0g-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
rapidjson-dev \
|
git \
|
||||||
cmake
|
rapidjson-dev \
|
||||||
|
cmake
|
||||||
|
|
||||||
# Building project
|
# Build project
|
||||||
cd /home/vagrant/Rublon-Linux
|
cd /home/vagrant/Rublon-Linux
|
||||||
cmake -B build && cmake --build build
|
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
|
|
||||||
|
|
||||||
service sshd restart
|
# Install
|
||||||
SHELL
|
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
|
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.
|
# documentation for more information about their specific syntax and use.
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noniteracactive\
|
DEBIAN_FRONTEND=noniteracactive\
|
||||||
apt-get update && apt-get install -y \
|
apt-get update && apt-get install -y \
|
||||||
gcc \
|
gcc \
|
||||||
build-essential \
|
build-essential \
|
||||||
openssh-server \
|
openssh-server \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libpam0g-dev \
|
libpam0g-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
rapidjson-dev \
|
git \
|
||||||
cmake
|
rapidjson-dev \
|
||||||
|
cmake
|
||||||
|
|
||||||
# Building project
|
# Build project
|
||||||
cd /home/vagrant/Rublon-Linux
|
cd /home/vagrant/Rublon-Linux
|
||||||
cmake -B build && cmake --build build
|
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
|
|
||||||
|
|
||||||
service sshd restart
|
# Install
|
||||||
SHELL
|
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
|
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
|
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
|
||||||
# documentation for more information about their specific syntax and use.
|
# documentation for more information about their specific syntax and use.
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
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
|
DEBIAN_FRONTEND=noniteracactive\
|
||||||
cd /home/vagrant/Rublon-Linux
|
apt-get update && apt-get install -y \
|
||||||
cmake -B build && cmake --build build
|
gcc \
|
||||||
sudo cmake --install build
|
build-essential \
|
||||||
|
openssh-server \
|
||||||
sed -i 's/UsePAM .*/UsePAM yes/' /etc/ssh/sshd_config
|
libcurl4-openssl-dev \
|
||||||
sed -i 's/ChallengeResponseAuthentication .*/ChallengeResponseAuthentication yes/' /etc/ssh/sshd_config
|
libpam0g-dev \
|
||||||
grep -q -e 'auth required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aauth required pam_rublon.so' /etc/pam.d/sshd
|
libssl-dev \
|
||||||
grep -q -e 'account required pam_rublon.so' /etc/pam.d/sshd || sed -i '\$aaccount required pam_rublon.so' /etc/pam.d/sshd
|
git \
|
||||||
|
rapidjson-dev \
|
||||||
|
cmake
|
||||||
|
|
||||||
service sshd restart
|
# Build project
|
||||||
SHELL
|
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
|
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