disabled sshshell script until further notice
This commit is contained in:
parent
641efe906c
commit
8c4f316758
12
basics.sh
12
basics.sh
|
@ -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"
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue