diff --git a/scripts/ssh.sh b/scripts/ssh.sh new file mode 100644 index 0000000..bf81356 --- /dev/null +++ b/scripts/ssh.sh @@ -0,0 +1,3 @@ +sshpass -p "$SERVER_PASSWORD" \ + ssh -t $SERVER_USER@$SERVER_HOST \ + "cd $SERVER_PATH && exec \$SHELL" diff --git a/sync-project.sh b/sync-project.sh index a06f1d2..55b363c 100755 --- a/sync-project.sh +++ b/sync-project.sh @@ -121,7 +121,7 @@ echo "{ echo -e "${GREEN}.vscode/sftp.json created successfully${NC}" # Go through scripts, add variables and add them to project folder -scripts=("watch-build.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh") +scripts=("watch-build.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh" "ssh.sh") for script in "${scripts[@]}"; do # Add variables to script