Jump to content

Hi all,

 

I'm doing a school project where we have to get 6 raspberry pi's to cluster together and transcode a video. The problem is that we have 1 monitor, 1 mouse, and 1 keyboard for all 6 pi's, so swapping out peripherals eats up a lot of time. 

I found out today I can open a new tab in the cmd and ssh to the other pis to work on their command lines from one machine. 

I was wondering if I can make a command file to open a new tab (Shift+Ctrl+T), enter "ssh pi@worker[1], execute, then open a new tab and repeat for worker[1-5]

 

The OS we're running is Raspian if that's any help.

 

Thanks in advanced for any help.

Link to post
Share on other sites

you probably don't want this script to open a new tab and run it, but you probably want the script to just run a command on a remote system, and you can easily do that over ssh.

 

You can run ssh pi@pi2 'yourcommand.sh' to run youcommand.sh on pi2

Link to post
Share on other sites

Addition to above post; you will want to export your ssh keys so you can execute commands without having to type in a password https://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×