19
Jan/101
Jan/101
Using SSH in PHP
This tutorial will show you how to use the SSH2 functions in PHP to execute commands over SSH. This requires the SSH2 PECL extension to be installed on your server (installation instructions). Keep in mind that as of this time, the extension is in a beta state, so stability is not guaranteed.
Sending commands is fairly straightforward. You just connect, authenticate, then execute commands. Authentication can be done using a password or public key. Executing commands is a little tricky since it returns a stream that you have to handle.
Categories
- General (6)
- News (4)
- Projects (10)
- Lock My Stuff (2)
- TempServers (8)
- Software (7)
- Tips & Tutorials (42)
Archives
- [+]2010 (3)
- [+]2009 (46)
- [+]December (5)
- [+]November (3)
- [+]October (2)
- [+]September (4)
- [+]August (4)
- [+]July (4)
- [+]June (6)
- [+]May (4)
- [+]April (4)
- [+]March (4)
- [+]February (2)
- [+]January (4)
- [+]2008 (15)
- [+]December (14)
- AJAX Loading Image Generator
- Reloading Images Using JavaScript
- Creating a CAPTCHA in PHP with GD
- Bypassing Register_Globals in PHP
- Toggle Display of Page Elements with JavaScript
- What is AJAX?
- WordPress 2.7 Released
- LMS New Feature: Email Form
- Strong Passwords
- ISPConfig - Open Source Web Hosting Panel
- Simple PHP Page Template System
- Creating an Upload Progress Bar in PHP with APC
- Introducing LockMyStuff.com
- About This Blog (WordPress)
- [+]November (1)
- [+]December (14)
