diff --git a/source/faq.rst b/source/faq.rst index 048f7df..9c5638d 100644 --- a/source/faq.rst +++ b/source/faq.rst @@ -96,3 +96,48 @@ To: } } +Q: How do I change the SFTP Port? +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +In the ``config.json`` file, you need to change ``daemon.sftp.host`` to the port you require. Default is:``"host": "0.0.0.0:5657"``. + +PEASE NOTE: You cannot use ports 1-1024 as these are reserved and you will not be able to bind PufferPanel to them unless from root. + + +.. code-block:: javascript + + "daemon": { + "auth": { + "url": "https://panel.domain.com/oauth2/token", + "clientId": ".node_2", + "clientSecret": "SECRET" + }, + "data": { + "cache": "/var/lib/pufferpanel/cache", + "servers": "/var/lib/pufferpanel/servers" + }, + "sftp": { + "host": "0.0.0.0:5657" + } + } + +To: + +.. code-block:: javascript + + "daemon": { + "auth": { + "url": "https://panel.domain.com/oauth2/token", + "clientId": ".node_2", + "clientSecret": "SECRET" + }, + "data": { + "cache": "/var/lib/pufferpanel/cache", + "servers": "/var/lib/pufferpanel/servers" + }, + "sftp": { + "host": "0.0.0.0:12000" + } + } + +After you have changed the port, restart PufferPanel on the Node. Make sure to update the SFTP Port field in the panel with the new SFTP port for that node.