Changeset View
Changeset View
Standalone View
Standalone View
scripts/ssh/ssh-auth.php
| Show All 10 Lines | |||||
| $rows = queryfx_all( | $rows = queryfx_all( | ||||
| $conn_r, | $conn_r, | ||||
| 'SELECT userName, keyBody, keyType FROM %T u JOIN %T ssh | 'SELECT userName, keyBody, keyType FROM %T u JOIN %T ssh | ||||
| ON u.phid = ssh.userPHID', | ON u.phid = ssh.userPHID', | ||||
| $user_dao->getTableName(), | $user_dao->getTableName(), | ||||
| $ssh_dao->getTableName()); | $ssh_dao->getTableName()); | ||||
| if (!$rows) { | if (!$rows) { | ||||
| echo pht("No keys found.")."\n"; | echo pht('No keys found.')."\n"; | ||||
| exit(1); | exit(1); | ||||
| } | } | ||||
| $bin = $root.'/bin/ssh-exec'; | $bin = $root.'/bin/ssh-exec'; | ||||
| foreach ($rows as $row) { | foreach ($rows as $row) { | ||||
| $user = $row['userName']; | $user = $row['userName']; | ||||
| $cmd = csprintf('%s --phabricator-ssh-user %s', $bin, $user); | $cmd = csprintf('%s --phabricator-ssh-user %s', $bin, $user); | ||||
| Show All 26 Lines | |||||