(20241225) Work started on upgrades and server-registration module.

This commit is contained in:
2024-12-25 14:52:07 +05:30
parent 053e2c49e3
commit 1fd287900d
8 changed files with 647 additions and 164 deletions
+3 -2
View File
@@ -19,11 +19,12 @@ if [[ $SELECTION -gt 0 && $SELECTION -le ${#SERVERS[@]} ]]; then
# Note down the selection in a variable:
SELECTED_SERVER=${SERVERS[$((SELECTION - 1))]}
# Ask the user which directory he wants to upload and his username on the server:
# Ask the username and target port no. on the server::
read -rp "Your username on the server ..... : " USER
read -rp "The target port no. ............. : " PORT
# Run the command:
ssh -p 19991 "$USER@$SELECTED_SERVER"
ssh -p "$PORT" "$USER@$SELECTED_SERVER"
# Exit with success (assuming that the actual data sending went well):
echo "session ended"