Skip to content

Ave-Wat/RemoteConnectLabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RemoteConnectLabs

Script to remotely ssh into to all CS department labs.

The filesToCopy folder contains use cases of this script.

How to Use

Run in terminal: bash sshAll.sh [optional arguments: -c [file/folder to scp], -s [script to run]]

  • running with no args simply ssh's into each machine, allowing commands to be run manually
  • -c takes in the path of a file or folder to copy to the mathcsadmin home directory on all lab machines using scp
  • -s takes in the path of a script (from the perspective of the user mathcsadmin on a lab machine) to run on all lab machines as sudo. This script must already be on the machine. If it is not, then use the -c option to scp the script onto the machines.

Example Useage

bash sshAll.sh -c ~/RemoteConnectLabs/filesToCopy/UpdateAutomatorFix -s /Users/mathcsadmin/UpdateAutomatorFix/replaceFetchUpdates.sh

This would take the UpdateAutomatorFix from the filesToCopy folder and scp it to the mathcsadmin home directory. Then, the script ssh's into the mathcsadmin home directory and runs the script replaceFetchUpdates.sh.

TODO

Need to add a -w arg to only run ssh on Windows dual boot lab computers.

About

Script to remotely connect to all CS department labs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published