disabled sshshell script until further notice

This commit is contained in:
sose 2020-06-13 04:23:12 +00:00
parent 641efe906c
commit 8c4f316758
1 changed files with 6 additions and 6 deletions

View File

@ -28,11 +28,11 @@ configure_user() {
useradd "$tilde_username" -d "/home/$tilde_username"
chown "$tilde_username:$tilde_username" "/home/$tilde_username"
sshfs "$tilde_username@$tilde_name:/home/$tilde_username /home/$tilde_username"
touch /usr/bin/sshshell
echo "#!/bin/sh" >> /usr/bin/sshshell
echo "ssh -i $key_file $tilde_username@$tilde_name" >> /usr/bin/sshshell
chmod +x /usr/bin/sshshell
echo "/usr/bin/sshshell" >> /etc/shells
chsh -s "/usr/bin/sshshell $tilde_username"
# touch /usr/bin/sshshell
# echo "#!/bin/sh" >> /usr/bin/sshshell
# echo "ssh -i $key_file $tilde_username@$tilde_name" >> /usr/bin/sshshell
# chmod +x /usr/bin/sshshell
# echo "/usr/bin/sshshell" >> /etc/shells
# chsh -s "/usr/bin/sshshell $tilde_username"
}