mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 15:30:58 +01:00
Make ssh-connect
more robust against known_host issues
I think the daemon is choking on this, prevent it from failing. Auditors: btrahan
This commit is contained in:
parent
fdb03a424d
commit
58530669a2
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ $pattern[] = 'ssh';
|
|||
$pattern[] = '-o';
|
||||
$pattern[] = 'StrictHostKeyChecking=no';
|
||||
|
||||
// This prevents "known host" failures, and covers for issues where HOME is set
|
||||
// to something unusual.
|
||||
$pattern[] = '-o';
|
||||
$pattern[] = 'UserKnownHostsFile=/dev/null';
|
||||
|
||||
$credential_phid = getenv('PHABRICATOR_CREDENTIAL');
|
||||
if ($credential_phid) {
|
||||
$viewer = PhabricatorUser::getOmnipotentUser();
|
||||
|
|
Loading…
Reference in a new issue