Page MenuHomePhabricator

Change phabricator's sshd to use other port number
Closed, DuplicatePublic

Description

What I did
I followed the instruction on https://secure.phabricator.com/book/phabricator/article/diffusion_hosting/

And instead of change the system sshd port, I decided to change the phabricator sshd port by just update the Port in /etc/ssh/sshd_config.phabricator

Problem
However is there anyway to edit this path in diffusion? Because if I access without the port:
git clone ssh://git@xxx.xxx.xxx/diffusion/T/test.git

It will just throw an error

fatal: '/diffusion/T/test.git' does not appear to be a git repository
fatal: Could not read from remote repository.

because it's trying to access it via the normal ssh.

Would be nice

  1. Can edit the URL display in diffusion to include port number:

git clone ssh://git@xxx.xxx.xxx:10022/diffusion/T/test.git

  1. Why should we allow git to login via sshd port 22? Can we disable that?

Thanks,

Event Timeline

fzhan raised the priority of this task from to Needs Triage.
fzhan updated the task description. (Show Details)
fzhan added a project: Phabricator.
fzhan added a subscriber: fzhan.

Just to note for future users: now there is an option diffusion.ssh-port for correct clone URI display