Options for remote code execution (SSH?)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
true_atlantis
Forum Newbie
Posts: 2
Joined: Wed Oct 24, 2007 2:02 pm

Options for remote code execution (SSH?)

Post by true_atlantis »

Has anyone done anything with remote code execution? Specifically via an SSH client WITHOUT using Keys.

My initial thought was to attempt to pipe a password to the 'ssh user@host' command, but that is a hack. The next thing I found was the pecl ssh2 library, but ssh2 is still beta, and the library cant compile with the newest ssh2lib.

Any other ideas/suggestions? Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What kind of remote code execution? Is it automated, or on-demand? Do you control the remote server?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Is that not what XML-RPC was intended to solve?

Serious question, I could be wrong. So very wrong.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

You need a key based authentication. E.g. :http://www.astro.caltech.edu/~mbonati/W ... d_ssh.html
There are 10 types of people in this world, those who understand binary and those who don't
true_atlantis
Forum Newbie
Posts: 2
Joined: Wed Oct 24, 2007 2:02 pm

Post by true_atlantis »

The execution will be on demand (basically audits of specific files). I will have an account on the remote server, but it will be AAA authentication (RSA RADIUS), and the server is not 'owned' by me. Key authentication will not be possible.
Post Reply