Is there any free way or method for ssh that could be used to install and update linux clients for a ubuntu laptop. I do not have password less ssh but the admin password is the same for all of the clients. The clients are connected over WiFi and only have 512mb of ram.

  • Do you want to perform a single command from a origin shell? take a look on cluster ssh. – vfbsilva Jan 28 '15 at 16:25
  • You could refer to the canonical question as discussed here. – Ramesh Jan 28 '15 at 16:39
  • 1
    One of these commands should help. – Gilles 'SO- stop being evil' Jan 28 '15 at 21:47

If you want to use SSH you will obviously want to setup ssh keys for passwordless entry or you will be forced to enter the password each time. SSH keys are obviously much more secure. The ssh command can be used to send a command to the remote box and then exit when the command finishes:

ssh root@remoteserver COMMAND

In your case:

ssh root@remoteserver [yum,apt-get,etc] install package

But without ssh keys you will still have to plug in the password. If you want to run several at a time, something simplet you could do is pass the servers into a for loop. BUT again without passwordless ssh you will be prompted for the password each time it connects to a server.

for i in remoteserver1 remoteserver2 remoteserver3; do ssh root@$i [yum,apt-get,etc] install package ; done

There is also a utility out there called sshpass that might be helpful for what you are looking for (never used it) but I would recommend ssh keys for simplicity and security.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.