Spaces:
Runtime error
Runtime error
if [ ! -f "/etc/ssh/ssh_host_rsa_key" ];then | |
ssh-keygen -t rsa -N '' -q -f /etc/ssh/ssh_host_rsa_key | |
fi | |
if [ ! -f "/root/.ssh/id_rsa_63322" ];then | |
ssh-keygen -t rsa -N '' -q -f /root/.ssh/id_rsa_63322 | |
cat /root/.ssh/id_rsa_63322.pub >> /root/.ssh/authorized_keys | |
_f1='{"username": "root", "pkey": "' | |
_f2=$(sed s/$/'\\n'/ /root/.ssh/id_rsa_63322 | tr -d '\r\n') | |
_f3='", "is_save": "1", "c_type": "True", "host": "127.0.0.1", "password": "", "port": 63322}' | |
echo "${_f1}${_f2}${_f3}" | base64 | tr -d '\r\n '| od -An -tx1 | tr -d '\r\n ' > "/www/server/panel/config/t_info.json" | |
fi | |
/usr/sbin/sshd | |
/usr/sbin/crond | |
for file in `ls /etc/init.d` | |
do if [ -x /etc/init.d/${file} ]; then | |
/etc/init.d/$file restart | |
fi done | |
echo 7860 | bt 8 | |
bt default | |
tail -f /dev/null |