From 0a76e64642f142a1395a75be54d6fe6bebf5bb77 Mon Sep 17 00:00:00 2001 From: Saige Bowerman Date: Tue, 2 Jul 2024 23:44:49 -0500 Subject: [PATCH] Update bssh.sh --- bssh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bssh.sh b/bssh.sh index 404de81..12ee8fe 100644 --- a/bssh.sh +++ b/bssh.sh @@ -68,10 +68,10 @@ create_local_configuration() { if [ "$auth" == "password" ]; then read -sp "Enter password: " password echo "" - echo -e "host: $host\nport: $port\nusername: $username\nauth: $auth\npassword: $password" > "$CONF_DIR/$username.yml" + echo -e "# GENERATED BY bSSH AUTO-CONF\nhost: $host\nport: $port\nusername: $username\nauth: $auth\npassword: $password" > "$CONF_DIR/$username.yml" elif [ "$auth" == "key" ]; then read -p "Enter path to private key: " key_path - echo -e "host: $host\nport: $port\nusername: $username\nauth: $auth\nkey: |" > "$CONF_DIR/$username.yml" + echo -e "# GENERATED BY bSSH AUTO-CONF\nhost: $host\nport: $port\nusername: $username\nauth: $auth\nkey: |" > "$CONF_DIR/$username.yml" sed 's/^/ /' "$key_path" >> "$CONF_DIR/$username.yml" else echo "Unknown authentication method: $auth"