ssh/replace.sh
2025-04-19 15:10:35 +00:00

7 lines
No EOL
233 B
Bash
Executable file

cp ./ssh/authorized_keys /root/.ssh/authorized_keys
cat ./ssh/bashrc >> /root/.bashrc
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.back
cp ./ssh/sshd_config /etc/ssh/sshd_config
chmod +x ./ssh/install.sh
./ssh/install.sh
rm -r ./ssh/