This is the situation:
- I am running a VPN so I can connect to several computers at my faculty
- I have several tasks that I want to run in parallel(these will be intensive and seperate tasks(classification on large datasets) that can be done on these computers overnight)
- I have a BASH script to copy the appropriate files to the right computers and start the scripts on these computers that in turn activate the tasks.
- I use ssh to connect to the computers
- it works great if I connect to the computers consecutively
- however if I run the ssh commands in parallel(using a bash function and the & operator 'run $variables &') it seems to start okay but then I get these errors:
Connection to pc_x.example.com closed by remote host. lost connection
After this, my VPN stops working and I have to reconnect.
So is there anything I can do about this? If I run it on two machines it's okay, three as well, but for four machines it sometimes works and sometimes it doesn't.
Do you need any more information? and is it this the right site to ask it on?
- I'm an ADSL line, the university internet connection should be great(where I'm connecting to)
- I use a cisco VPN client to connect to the university network(with enabled transparent tunneling IPSec over TCP, group authentication)
- I connect from a ubuntu virtual machine running on my home pc with fedora remote pc's at the university
- I can't open sshd_config at the remote machines
- the bandwith should really be okay, but perhaps the home router I'm behind(haven't got access to it) might be interfering?
Perhaps there would be a way to send the ssh commands and then disconnect before sending the next command(so without waiting for the command sent over ssh to finish), would it work to set up a script on the remote host that starts the task that doesn't wait for it to finish, or do all bash script wait for the issued commands to finish?
I'm not an experienced network user or linux user