mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
1.remove the same images 2.change 1) to 1. docs(wn): Update wakenet README Update README_cn.rst docs(afe):Update rst. docs/delete_repetition_doc doc/add_missing_chinese_doc doc/review_with_docx doc/add_test_report docs/add_rst_to_html_pdf docs/change_table_pic_2_rst_table docs/fix_err
19 lines
531 B
Bash
Executable File
19 lines
531 B
Bash
Executable File
# Bash helper functions for adding SSH keys
|
|
|
|
function add_ssh_keys() {
|
|
local key_string="${1}"
|
|
mkdir -p ~/.ssh
|
|
chmod 700 ~/.ssh
|
|
echo -n "${key_string}" >~/.ssh/id_rsa_base64
|
|
base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 >~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
}
|
|
|
|
function add_doc_server_ssh_keys() {
|
|
local key_string="${1}"
|
|
local server_url="${2}"
|
|
local server_user="${3}"
|
|
add_ssh_keys "${key_string}"
|
|
echo -e "Host ${server_url}\n\tStrictHostKeyChecking no\n\tUser ${server_user}\n" >>~/.ssh/config
|
|
}
|