ssh/replace.sh
2025-05-20 13:49:22 +00:00

8 lines
No EOL
240 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/
reboot