sama Posted December 16, 2009 Share Posted December 16, 2009 Dear mates I'm designing a web site that gives access to anyone how wants to use network gears. let us called it " Remote network Lab". The equipments are limited so every user should reserve his/her time to get access. when he/she reserve hour(s), he will receive a password to use it as a credential to access the equipments. The users will access the devices ( routers, switches.. etc ) using ssh or telnet ( terminal emulator like putty), when he opened the session, he should enter the password that he granted. when his time expire, the ssh/telnet should kick him off the session. please, are their any ideas. I don't have enough experience on PHP :-\, so everything will be appreciated . No matter how simple the answers, I don't want to complicate the whole matter for me.so try to be simple!! sama Baghdad-Iraq Merry Christmas Quote Link to comment Share on other sites More sharing options...
sama Posted December 17, 2009 Author Share Posted December 17, 2009 Hi mates nobody answer me. well is it a hard question?? ask me to clarify if you see ambiguity Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 17, 2009 Share Posted December 17, 2009 Do you have root access to your server? I'll assume you have a dedicated one. For the session side, I don't think you can really bind PHP and telnet/SSH like so. What you can do is use a PHP command to parse the telnet server when the user is logged in: such as popen'ing telnet or SSH, dynamically setting up authorization for your assigned users and re-write the config for telnet (Or shut it off with another command) once the session time is over (which'd need CRON jobs.) You may need to write your own CGI gateway.. with popen or exec you can run popen("/usr/bin/telnet --start --user $username --pass $pass").. Or however you set up telnet with user/pass. Quote Link to comment Share on other sites More sharing options...
sama Posted December 18, 2009 Author Share Posted December 18, 2009 Hello mates Thank you so much oni-kun for your replay. dear readers, I don't have enough knowledge in php to solve this problem. do anybody have an idea, a simple idea? I need a reservation system. a simple one to integrate it in my site. Merry Christmas. your suggestions will be wonderful gifts for me in this Christmas.. may all your dreams come true in the next One sama Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.