Forums
This topic is locked
backticks, exec, passthru?
Posted 16 Apr 2002 18:52:10
1
has voted
16 Apr 2002 18:52:10 Keith Slater posted:
Hey Im trying to do something pretty simply here... Im wanting to make a simple page with a button... and when a user click on that button i want it to do several server commands.. somrhing like thiscd ..
ssh -l -a servername
password
something like that example.. I've done a few things like cd .. \n ssh....... but theirs always a pause after the ssh command and the password entry... Is their an easier way of doing what im trying to accompolish??
Thanks a lot
Keith
Keith Slater
Replies
Replied 17 Apr 2002 03:16:34
17 Apr 2002 03:16:34 Tim Green replied:
No there isn't. When using either su or ssh, or any commands like that, there is deliberately a pause before authentication. This makes it extremely difficult for someone to script an automated password hacker.
For this reason most admin systems that require this kind of useage, use a telnet, or ssh applet, and a specific login that runs a menu driven shell script.
This isn't really going to help you with your current situation, but offhand I can't think of a solution.
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
For this reason most admin systems that require this kind of useage, use a telnet, or ssh applet, and a specific login that runs a menu driven shell script.
This isn't really going to help you with your current situation, but offhand I can't think of a solution.
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>