• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# This script is used to run commands on a Google Cloud instance via SSH
4
5# Define the variables for Google Cloud project, zone, username, and instance
6PROJECT_ID="ucr-ursa-major-sridharan-lab"
7ZONE="us-central1-a"
8USER="root"
9INSTANCE="nullway-jmh"
10
11gcloud compute ssh --project=$PROJECT_ID --zone=$ZONE $USER@$INSTANCE --command="$1"
12