Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F21409669
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/bin/ssh-auth-key b/bin/ssh-auth-key
deleted file mode 120000
index 7dff83c316..0000000000
--- a/bin/ssh-auth-key
+++ /dev/null
@@ -1 +0,0 @@
-../scripts/ssh/ssh-auth-key.php
\ No newline at end of file
diff --git a/scripts/ssh/ssh-auth-key.php b/scripts/ssh/ssh-auth-key.php
deleted file mode 100755
index 0c23a20edf..0000000000
--- a/scripts/ssh/ssh-auth-key.php
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-$root = dirname(dirname(dirname(__FILE__)));
-require_once $root.'/scripts/__init_script__.php';
-
-try {
- $cert = file_get_contents('php://stdin');
- $public_key = PhabricatorAuthSSHPublicKey::newFromRawKey($cert);
-} catch (Exception $ex) {
- exit(1);
-}
-
-$key = id(new PhabricatorAuthSSHKeyQuery())
- ->setViewer(PhabricatorUser::getOmnipotentUser())
- ->withKeys(array($public_key))
- ->withIsActive(true)
- ->executeOne();
-if (!$key) {
- exit(1);
-}
-
-$object = $key->getObject();
-if (!($object instanceof PhabricatorUser)) {
- exit(1);
-}
-
-$bin = $root.'/bin/ssh-exec';
-$cmd = csprintf('%s --phabricator-ssh-user %s', $bin, $object->getUsername());
-// This is additional escaping for the SSH 'command="..."' string.
-$cmd = addcslashes($cmd, '"\\');
-
-$options = array(
- 'command="'.$cmd.'"',
- 'no-port-forwarding',
- 'no-X11-forwarding',
- 'no-agent-forwarding',
- 'no-pty',
-);
-
-echo implode(',', $options);
-exit(0);
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Jul 31, 11:18 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16432377
Default Alt Text
(1 KB)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment