Using Sia on a remote node
While the majority of users use Sia on a local computer, there are a few instances where it is either not possible or more useful to run a Sia node on a remote server.
Sia already has the functionality to automatically pick up a running
siadinstance if one was started manually. To get Sia to pick up a remote instance, all you need to do is forward your local port 9980 to your remote server port 9980. For those comfortable with the command line, you can use the following command.
-fRequests ssh to go to background just before command execution.
-LSpecifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side.
-NDo not execute a remote command.
Now when you restart Sia, it will pick up the remote instance of siad. All API calls that don't require authentication will work, however API calls that require authentication will fail as the UI will be using the wrong API password. A workaround for this is to restart the remote siad instance with:
Now, all API calls will work and you can use Sia just like you would with a local siad instance.