Why has port 22 been opened on files.000webhost.com?


I’m using my 000webhost account to design some auto-detection code to work out how to connect to any shared web server. One of my manual tests just broke, because port 22 has been opened in the last day or so on the FTP server. Is this likely to remain open, perhaps because SSH will be offered on selected accounts? I might have to redesign something here :smiley:

My testing code, for reference:


$host = 'files.000webhost.com';

printConnection($host, 21, 'FTP');
printConnection($host, 22, 'SSH');

function printConnection($host, $port, $name)
    echo $name . ': ';
    echo tryConnection($host, $port) ? 'Open' : 'Closed';
    echo "\n";

function tryConnection($host, $port)
    $errno = $errstr = null;

    $fp = @fsockopen($host, $port, $errno, $errstr, 5);
    $ok = (bool) $fp;
    if ($fp)

    return $ok;


FTP: Open
SSH: Open

It looks like it’s a real SSH server sitting there, but it only supports publickey auth, so my credentials fail.


Hi @halfer!

We do not officially support SSH connections to 000webhost sites. If anything will change we will notice you :slight_smile:


Yes, I appreciate that - but it’s not what I am asking. :slightly_smiling_face: I am wondering, perhaps for my own curiosity, why this port has been opened. If you don’t know, that’s fine - I can work around it.


Most likely our operators are performing some temporary tests.

Things should revert soon. …or not :slight_smile: