mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 18:50:08 +00:00
tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1a262600ee
commit
53ac9fc694
10
ssh/make.sh
10
ssh/make.sh
@ -67,14 +67,12 @@ echo "# Creating CT..."
|
||||
pctCreateDebian $ID "${OPTS_STAGE_1}" "$PASS"
|
||||
|
||||
echo "# Installing dependencies..."
|
||||
@ lxc-attach $ID apt install vim htop iftop iotop tmux mc
|
||||
|
||||
echo "# Setup: sshd..."
|
||||
@ lxc-attach $ID -- systemctl enable ssh.socket --now
|
||||
@ lxc-attach $ID apt install -y vim htop iftop iotop tmux mc
|
||||
|
||||
echo "# Setup: user..."
|
||||
xread "ssh user name: " USER
|
||||
@ lxc-attach $ID adduser $USER
|
||||
xread "ssh user name: " SSH_USER
|
||||
[ -z $SSH_USER ] \
|
||||
|| @ lxc-attach $ID adduser $SSH_USER
|
||||
|
||||
echo "# Post config..."
|
||||
pctSet $ID "${OPTS_STAGE_2}" $REBOOT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user