docs/frontends/FTP-and-SFTP.txt : ftpd and sftpd doesn't listen on loopback interface only

This commit is contained in:
marc.doudiet 2010-08-13 07:08:53 -07:00
parent 9d421cb022
commit 95c62dc238
1 changed files with 10 additions and 8 deletions

View File

@ -77,18 +77,19 @@ the BASEDIR/tahoe.cfg file:
[ftpd] [ftpd]
enabled = true enabled = true
port = 8021 port = tcp:8021:interface=127.0.0.1
accounts.file = private/ftp.accounts accounts.file = private/ftp.accounts
The FTP server will listen on the given port number. The "accounts.file" The FTP server will listen on the given port number and on the loopback
pathname will be interpreted relative to the node's BASEDIR. interface only. The "accounts.file" pathname will be interpreted
relative to the node's BASEDIR.
To enable the FTP server with an account server instead, provide the URL of To enable the FTP server with an account server instead, provide the URL of
that server in an "accounts.url" directive: that server in an "accounts.url" directive:
[ftpd] [ftpd]
enabled = true enabled = true
port = 8021 port = tcp:8021:interface=127.0.0.1
accounts.url = https://example.com/login accounts.url = https://example.com/login
You can provide both accounts.file and accounts.url, although it probably You can provide both accounts.file and accounts.url, although it probably
@ -118,19 +119,20 @@ lines to the BASEDIR/tahoe.cfg file:
[sftpd] [sftpd]
enabled = true enabled = true
port = 8022 port = tcp:8022:interface=127.0.0.1
host_pubkey_file = private/ssh_host_rsa_key.pub host_pubkey_file = private/ssh_host_rsa_key.pub
host_privkey_file = private/ssh_host_rsa_key host_privkey_file = private/ssh_host_rsa_key
accounts.file = private/ftp.accounts accounts.file = private/ftp.accounts
The SFTP server will listen on the given port number. The "accounts.file" The SFTP server will listen on the given port number and on the loopback
pathname will be interpreted relative to the node's BASEDIR. interface only. The "accounts.file" pathname will be interpreted
relative to the node's BASEDIR.
Or, to use an account server instead, do this: Or, to use an account server instead, do this:
[sftpd] [sftpd]
enabled = true enabled = true
port = 8022 port = tcp:8022:interface=127.0.0.1
host_pubkey_file = private/ssh_host_rsa_key.pub host_pubkey_file = private/ssh_host_rsa_key.pub
host_privkey_file = private/ssh_host_rsa_key host_privkey_file = private/ssh_host_rsa_key
accounts.url = https://example.com/login accounts.url = https://example.com/login