Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13183422
D11539.id27760.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
713 B
Referenced Files
None
Subscribers
None
D11539.id27760.diff
View Options
diff --git a/scripts/ssh/ssh-auth.php b/scripts/ssh/ssh-auth.php
--- a/scripts/ssh/ssh-auth.php
+++ b/scripts/ssh/ssh-auth.php
@@ -26,7 +26,17 @@
foreach ($keys as $ssh_key) {
$user = $ssh_key->getObject()->getUsername();
- $cmd = csprintf('%s --phabricator-ssh-user %s', $bin, $user);
+ $key_argv = array();
+ $key_argv[] = '--phabricator-ssh-user';
+ $key_argv[] = $user;
+
+ $cmd = csprintf('%s %Ls', $bin, $key_argv);
+
+ $instance = PhabricatorEnv::getEnvConfig('cluster.instance');
+ if (strlen($instance)) {
+ $cmd = csprintf('PHABRICATOR_INSTANCE=%s %C', $instance, $cmd);
+ }
+
// This is additional escaping for the SSH 'command="..."' string.
$cmd = addcslashes($cmd, '"\\');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 11, 8:55 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6285278
Default Alt Text
D11539.id27760.diff (713 B)
Attached To
Mode
D11539: Pass cluster.instance to ssh-exec if it is defined
Attached
Detach File
Event Timeline
Log In to Comment