Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So if i have a script that runs half of all commands i type in the local computer and half on the remote computer will i be using both my computers at the same time. I am wondering whether this kind of running some applications on remote computers could be used as a grid computing platform
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
first of all welcome to LQ
scond it is theoriteically possible if you
1. configure the remote machine not to require a password for a given user for ssh (i know its possible but not sure how and less secure, so make sure that you only allow it to happen from a trusted source and that the user is only given the bare minimum privelege to accomplish the tasks you want done) and then run ssh in your script in single command mode
2. somehow create a script that automatically enters the password when prompted and use the ssh command in single command mode (man ssh)
it would be probably easier if you explained the purpose because there may be more specialized software for accomplishing such a task then a shell script and ssh that would be far easier to impiment
Well, I just got my new computer (Its a System76 Lemur. Yay!!) and my old one (running mint) is basically going to lie there without much to do. so i was thinking if i have both of them on the same domain and i run a script in the new one so that it runs a fixed amount (say 10-15%) of all processes i run on the old one so that i can kind of use my old computer to boost my new one. I was thinking of using boinc originally but that requires porting applications which is just overkill. but if what im thinking of works with ssh it might have potential to be used as a grid computing platform. If it works with two machines it wont be difficult to introduce more...
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
hmm, well probably woudnt work with scripting but if you do a search for 'linux clustering' you could figure out how to configure this
possibly overkil but a fun project nonetheless
the problem with ssh is that the whole process is run on either the local machine or it the remote machine, it doesnt provide shared processing
True it doesnt share the processes. I was thinking of a 10% probablity that a new process runs on the remote machine rather than the local one. so out of 10 processes 1 would run on the remote computer...
I found some how to s on clustering so im checking that out right now. Thanks
ssh is a program, running on your computer, which connects to the sshd daemon on the other computer, doing so in a secure fashion.
When you connect successfully, the remote daemon spawns a shell process on its (the remote...) computer, and causes that shell to run "as you." As you enter commands, these are relayed across the secure link and executed by the shell process on the remote computer. The output thereof is reflected back to you. All of the network traffic between the two computers is encrypted.
When you disconnect, the sshd daemon terminates the shell process that it had created on your behalf on the its (the remote...) computer.
Last edited by sundialsvcs; 03-10-2010 at 10:49 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.