Quote:
Originally Posted by schneidz
depending on the version of the distro and the version of openssh, maybe there is an exploit you can take advantage of that hasnt been patched yet ?
|
I hope that's a joke and not the kind of sound technical advice we would like LQ to be known for?
Quote:
Originally Posted by schneidz
maybe you can log in as root and open a listening port using netcat so that when it receives a certain string it will run a certain command.
|
Isn't that basically telling the OP to create a backdoor w/o any authentication?..
Quote:
Originally Posted by muruguc
I am writing a script to run a specific command from one server to all other servers in a network.
|
Wheel reinvention-wise there's OTS tools dealing with ^whatever.on.*multiple hosts already like ClusterSSH, Dsh, Fanout / Fanterm, Tentakel, Shocto, SwitchTower, MUC, Parallel SSH and RGANG.
Quote:
Originally Posted by muruguc
If SSH direct root is enabled then I am able to get the output but in my network we blocked direct SSH root access so my script is not giving output.
|
Good!
Quote:
Originally Posted by muruguc
creating a user account is a big process in our office.
|
I'm sorry but that isn't a
technical problem.
Quote:
Originally Posted by muruguc
Can you guys please suggest some other way to fix this.....
|
It depends on what your "specific command" is supposed to do (why don't you tell us?) and what flexibility you need. For example if it is only about passive system information gathering then you could look into SNMP (do using version 2 or 3 and set a read-only community) or even a Xinetd-based script.