just add this to main() of Plugin/SyncGit/Serve.php
to provide a welcome message via SSH.
----
$sql = new Pluf_SQL('login=%s', array($username));
$users =
Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->ge
n()));
if ($users->count() != 1 or !$users[0]->active)
$user = "";
else
$user = $users[0];
/* Fatal Error here in order to don't provide a SSH shell */
if ($user != "")
self::fatalError('Hi ' . $user . "!\nYou've successfully
authenticated, but we do not provide shell access.");
else
self::fatalError('Hi! Who are you?');
Reported by Kullawat Chaowanawatee, Feb 29, 2012
just add this to main() of Plugin/SyncGit/Serve.php to provide a welcome message via SSH. ---- $sql = new Pluf_SQL('login=%s', array($username)); $users = Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->ge n())); if ($users->count() != 1 or !$users[0]->active) $user = ""; else $user = $users[0]; /* Fatal Error here in order to don't provide a SSH shell */ if ($user != "") self::fatalError('Hi ' . $user . "!\nYou've successfully authenticated, but we do not provide shell access."); else self::fatalError('Hi! Who are you?');