Expose .niogit from Red Hat Business Central

Jeffrey Taylor
Sep 25, 2020
  1. Starting with a standalone.xml with this:
Initial standalone.xml
$ netstat -an | grep 8001
tcp 0 0 127.0.0.1:8001 0.0.0.0:* LISTEN

org.uberfire.nio.git.ssh.host: If the SSH daemon enabled, it uses this property as the local host identifier. Default value: localhost.

org.uberfire.nio.git.ssh.port: If the SSH daemon is enabled, it uses this property as the port number. Default value: 8001.

$ ./jboss-cli.sh — connect
[standalone@localhost:9990 /] /system-property="org.uberfire.nio.git.ssh.host":add(value="${jboss.bind.address:127.0.0.1}")
{“outcome” => “success”}
[standalone@localhost:9990 /] shutdown
[disconnected /]
$ ./standalone.sh -b rhpam78$ netstat -an | grep 8001
tcp 0 0 192.168.0.140:8001 0.0.0.0:* LISTEN

Lower your shields

$ sudo firewall-cmd --add-port=8001/tcp --permanent 
$ sudo firewall-cmd --reload

Updated standalone.xml

Add your ssh key to business central

$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTi8YkmZ5Dz0rwinUGPLP4f38Z5T/EaxfWkAWXDcOG1rLVJ6t4AEV7+XuLOH7BKStFsb1rU0ovds4CJLEVton4k/V2WfRlcRJ/7FK3KPXiMVlXYjb4c9imEa+B1z6RF9jPc5TkgBrDkasxXTSQVmchm6CyoXIGqsjtfDQfAR+VQ+n6qKvtl/hIgTFSGFrxcZi1fjXCB7C/CCfnSiIiP1R1Cez/hZwUwD1xgnve0Xoev4f1z5r6U/K8zn84IulcxmPxyK2Yq+nQCuNSJa5YEUgcGI0yQquMBIMoauyvqiI54fqUbM6BOcFa4lM9nfvwahWFwXLu02ooNY/d25qzsz+T jeff@Jeffs-MBP5)

Done:

$ git remote -v
origin ssh://pamAdmin@rhpam78–4:8001/MySpace/KJAR-Base-project (fetch)
origin ssh://pamAdmin@rhpam78–4:8001/MySpace/KJAR-Base-project (push)

--

--