22

How to run a process on a remote machine (linux) without ssh?

 2 years ago
source link: https://www.codesd.com/item/how-to-run-a-process-on-a-remote-machine-linux-without-ssh.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to run a process on a remote machine (linux) without ssh?

advertisements

How can I execute a process in the remote machine running linux without ssh.Since the machine is scheduled to pxe boot periodically, ssh key will be changed and executing process through a script using ssh is ruled out. Any idea on how it can be done?

Thanks


If your only problem with ssh is that you can't use key-based authentication, you don't have to rule out ssh entirely, you just have to automate a password-based authentication.

This project looks like it might be a good solution.

This should be more secure than http or telnet, as long as you keep your password and any files that contain it well guarded (which you would have to do with keys anyways).

Related Articles

How to start a process on a remote machine in C ++ on Windows

I'm using Dev-C++ under Windows. My question is how can i start a process on a remote machine? I know that PsExec can do that, but if it's possible, i want to avoid to use it. If someone can give some example code, i would appreciate it :) Thanks in

Running a Process on a Remote Machine with Sysinternals PsExec

I'm working on an ASP.NET\C# application. I'm trying to execute a process in a remote machine using system.Diagnostics.process and Sysinternals PsExec. Here's my code example: ProcessStartInfo startInfo = new ProcessStartInfo("psexec"); startInf

Running a Process in a Remote Machine Using WMI

I want to open process pon remote machine, this remote machine is inside local network. I try this command and in the remote machine nothing happen, this user that i connect with have administrators rights. Both machines running Windows 7 static void

Windows: running a process on a remote machine

How can I launch a program on a remote windows machine, so that it uses the remote's machine processor and ram. details: i have mapped another computers folder to a local drive. in this folder i want to launch an exe via a windows batch file so that

How to run multiple scripts in a remote machine

I have to remotely connect to a gateway(working on Linux platform), inside which I have couple of executable files (signingModule.sh and taxModule.sh). Now I want to write one script in my desktop which will connect to that gateway and run signingMod

Run a script on my remote machine from my machine even when the connection is lost

I have a remote machine where i need to run some script say ./main.sh I am using ssh to login to the remote machine and run the script but when the network connection is lost the script doesn't run. How can i run a script on my remote machine from my

Run a shell script in a remote machine using the ssh command with the configuration file

I want to execute a shell script in remote machine and i achieved this using the below command, ssh user@remote_machine "bash -s" < /usr/test.sh The shell script executed properly in the remote machine. Now i have made some changes in script

How to run cucumber-free tests on Jenkins Server (Linux)

How to run Cucumber headless tests on Jenkins Server (Linux)? What's the proper way to use the 'headless' gem executing Cucumber/Watir-Webdriver tests on Jenkins? First attempt: I have this in my env.rb: require 'rubygems' require 'cucumber' require

Do not start mongo on a remote machine I have SSH

I'm having some trouble starting up mongo. I am using it on a remote machine that I SSH into where. The remote machine is where I do everything (nothing is done on my own machine). Should I change the bind_ip from 127.0.0.1 to the remote machine's IP

Run a batch file that, in turn, starts a process on a remote machine

Here I have 2 requirements: Need a batch file to start a process on remote machine. C# program to run batch file. I came across using process info class but I am confused over calling WaitForExit. Why should we call that method? If we don't call that

powershell - how to map the network drive on a remote computer (how to run cmd commands on a remote computer)

I'm trying to map network drive on remote computer using Invoke-Command: Invoke-Command -ComputerName servername -ScriptBlock { net use L: \\server\folder password /user:login} but it doesn't work. Simple NET USE doesn't work either. I've also tried

How to run a process synchronously in Java?

I am currently building a small swing app to format drives and change permission and perform a bunch of small other things Currently, I've come across an issue where running multiple processes will cause them to run asynchronously, which is awesome b

How to run Selenium RC + PHPUnit + NetBeans remotely?

I have Selenium Server, PHPUnit and NetBeans up and running on a machine that I want to be my dedicated testing box. How can I set it up to were I modify test cases (I already figured that part out) and tell the test machine to run the test remotely?

How to run a script on a remote computer

I am trying to run a powershell script on remote pc . if i put the path in variable it does not run, but if i put the path as string it works. Not sure why. This works Invoke-Command -computername $serverName -scriptblock {& ("C:\_Project\test.ps

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK