indiws
indiws

Reputation: 313

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

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

Upvotes: 2

Views: 3511

Answers (3)

Gordon Bailey
Gordon Bailey

Reputation: 3911

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).

Upvotes: 3

SpliFF
SpliFF

Reputation: 38976

How about telnet? It's not as secure as SSH though.

Upvotes: 1

xda1001
xda1001

Reputation: 2459

You can do it via http, but I think this way is not safe.

For example, you can write a php script

<?php
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1')
    system("./yourPrograme");
?>

Upvotes: 1

Related Questions