January 2008
Make SSH connections with PHP
by 3 othersNot everyone knows about PHP's capabilities of making SSH connections and executing remote commands, but it can be very useful. I've been using it a lot in PHP CLI applications that I run from cronjobs, but initially it was a pain to get it to work. The PHP manual on Secure Shell2 Functions is not very practice or thorough for that matter, so I would like to share my knowledge in this how to, to make it a little less time consuming setting this up.
In this article I'm going to assume that:
* You're running Debian / Ubuntu
If not, you will have to substitute the package manager aptitude with whatever your distribution provides
* You're running PHP 5
If not, just replace php5 with php4 everywhere
* You have basic knowledge of PHP & server administration
* You already have PHP installed
November 2007
SSH Port Forwarding
SSH also has a wonderful feature called SSH Port Forwarding, sometimes called SSH Tunneling, which allows you to establish a secure SSH session and then tunnel arbitrary TCP connections through it. Tunnels can be created at any time, with almost no effort and no programming, which makes them very appealing. In this article we look at SSH Port Forwarding in detail, as it is a very useful but often misunderstood technology. SSH Port Forwarding can be used for secure communications in a myriad of different ways. Let's start with an example.
April 2007
SÉCURITÉ Ssh sans mot de passe
Ou comment se connecter à une machine distante sans avoir à rentrer son mot de passe.
Il existe une méthode de configuration plus rapide. Vous pouvez en une seule commande ajouter votre clé dans le fichier `authorized_keys` du serveur distant grâce à `ssh-copy-id`. Pour cela procédez comme suit :
January 2007
1
(4 marks)