Page MenuHomePhabricator

Without phabricator.base-uri defined,ssh permission denied
Closed, InvalidPublic

Description

Reproduction steps:

  • Install phabricator and leave phabricator.base-uri empty
  • enable ssh service according to diffusion_hosting
  • ssh -T pha_host

Expected result:

  • ssh login successfully

Actual result:

  • Error: phabricator Permission denied (publickey,keyboard-interactive)

Version:

Analysis:

  • Without base-uri defined, line 12 in phabricator/scripts/ssh/ssh-auth.php will raise exception:
12   $keys = id(new PhabricatorAuthSSHKeyQuery())
13     ->setViewer(PhabricatorUser::getOmnipotentUser())
14     ->withIsActive(true)
15     ->execute();

O:9:"Exception":7:{s:10:"*message";s:64:"Define 'phabricator.base-uri' in your configuration to continue.";s:17:"Exceptionstring";s:0:"";s:7:"*code";i:0;s:7:"*file";s:67:"/var/www/html/phabricator/src/infrastructure/env/PhabricatorEnv.php";s:7:"*line";i:473;s:16:"Exceptiontrace"

Suggestion:

  • Why ssh service depend on phabricator.base-uri?
  • If this is not a bug, please add phabricator.base-uri configuration in diffusion_hosting as a necessary requirement

Event Timeline

When phabriator.base-uri is not configured, you should receive this setup warning:

Screen Shot 2016-11-24 at 6.17.38 PM.png (987×1 px, 223 KB)

Do you see this setup warning?

Yes, but I don't know it's related to ssh service.
This problem spend me about 4 hours, I checked everything ...

Why did you choose to ignore the warning, considering that it says "major features will not work properly" until you configure it?

Actually, I want use Phabricator on intranet( IP address, https://192.168.1.10/) and internet(https://somedomain.corp...) with different URL, so I keep it empty.
If this is not a bug, can you add this to the section:Troubleshooting in diffusion_hosting.

Or make it not just a warning in setup issues list.

As a newcomer, it's a difficult issue.

That setup is not supported, and we already raise a setup warning making it clear that major features will not work until the base URI is configured.

Where can I find the major features list, any document?