Rename lxd-init to setup, add general setup

Make it so that allowed_auths only returns "password"
os-repl
root 2022-11-24 18:41:12 +00:00
parent c7284873ed
commit 4ee282e7d6
3 changed files with 15 additions and 3 deletions

View File

@ -1,3 +0,0 @@
#!/bin/sh
yes '' | lxd init

14
setup.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install snapd
sudo snap install lxd
yes '' | lxd init
sudo apt-get install python3-pip
python3 -m pip install paramiko pylxd sshim

View File

@ -25,4 +25,5 @@ Handler.check_auth_none = check_auth_none
Handler.check_auth_password = check_auth_password
Handler.check_auth_publickey = check_auth_publickey
Handler.enable_auth_gssapi = enable_auth_gssapi
Handler.get_allowed_auths = paramiko.server.ServerInterface.get_allowed_auths