Menu

SFTP

SFTP

SourceForge.net provides support for managing project web, developer web content, and uploading file releases using SFTP through our File management service.

SFTP (Secure File Transfer Protocol) is part of the SSH protocol suite. SFTP is not the same as FTP; SFTP is a modern, encrypted protocol and FTP is an old, unencrypted protocol. We do not support FTP.

The first time you connect to web.sourceforge.net or frs.sourceforge.net you will be prompted to check the SSH Key Fingerprints, to check these, please see the SSH Key Fingerprints list.

Clients

SFTP is served via Port 22

SFTP clients include:

  • sftp, a command-line client included in OpenSSH, available on Mac OS X, Linux, and BSD natively; and on MS Windows through Cygwin.
  • psftp, a command-line client included in PuTTY, available for MS Windows.
  • WinSCP, a graphical client available for MS Windows.
  • FileZilla, a graphical client available for MS Windows, Mac OS X, and Linux.

Examples are provided for SFTP:

For managing file releases

FRS Hostname: frs.sourceforge.net
Path: /home/frs/project/PROJECT_UNIX_NAME/ - Substitute your project UNIX name data for PROJECT_UNIX_NAME
Username: Your SourceForge.net Username
Password: Your SourceForge.net Password
An example session might look like (where Username="jsmith", Project UNIX name="fooproject",Release dir is "Rel_1"):

[jsmith@linux ~]$ sftp jsmith@frs.sourceforge.net
Connecting to frs.sourceforge.net...
The authenticity of host 'frs.sourceforge.net (216.34.181.57)' can't be established.
RSA key fingerprint is 68:b3:26:02:a0:07:e4:78:d4:ec:7f:2f:6a:4d:32:c5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'frs.sourceforge.net,216.34.181.57' (RSA) to the list of known hosts.
jsmith@frs.sourceforge.net's password:
sftp> cd /home/frs/project/fooproject/Rel_1
sftp> put foofile
Uploading foofile to /home/frs/project/fooproject/Rel_1/foofile
foofile                                                                                       100%  241     0.2KB/s   00:01
sftp> exit

For managing Developer Webspace

Developer web Hostname: frs.sourceforge.net
Path: userweb/htdocs/
Username: Your SourceForge.net Username
Password: Your SourceForge.net Password
An example session might look like (where Username="jsmith"):

[jsmith@linux ~]$ sftp jsmith@frs.sourceforge.net
Connecting to frs.sourceforge.net...
The authenticity of host 'frs.sourceforge.net (216.34.181.57)' can't be established.
RSA key fingerprint is 68:b3:26:02:a0:07:e4:78:d4:ec:7f:2f:6a:4d:32:c5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'frs.sourceforge.net,216.34.181.57' (RSA) to the list of known hosts.
jsmith@frs.sourceforge.net's password:
sftp> cd userweb/htdocs
sftp> put index.html
Uploading index.html to /incoming/j/js/jsmith/userweb/htdocs/index.html
index.html                                                                                       100%  241     0.2KB/s   00:01
sftp> exit

For managing Project Webspace

Project web Hostname: web.sourceforge.net
Path: /home/project-web/PROJECT_UNIX_NAME/htdocs/ - Substitute your project UNIX name data for PROJECT_UNIX_NAME
Username: Your SourceForge.net Username
Password: Your SourceForge.net Password
An example session might look like the following for Username "jsmith" uploading a file for his project with a UNIX name of "fooproject":

[jsmith@linux ~]$ sftp jsmith@web.sourceforge.net
Connecting to web.sourceforge.net...
The authenticity of host 'web.sourceforge.net (216.34.181.57)' can't be established.
RSA key fingerprint is 68:b3:26:02:a0:07:e4:78:d4:ec:7f:2f:6a:4d:32:c5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'web.sourceforge.net,216.34.181.57' (RSA) to the list of known hosts.
jsmith@web.sourceforge.net's password:
sftp> cd /home/project-web/fooproject/htdocs
sftp> put index.html
Uploading index.html to /home/project-web/fooproject/htdocs/index.html
index.html                                                                                       100%  241     0.2KB/s   00:01
sftp> exit

Using SFTP with FileZilla:

When using FileZilla, you will not be able to list and see all the directories available. This is intentional and can be resolved by entering the path of your project /home/pfs/project/PROJECT_UNIX_NAME/ as shown in the following example
Hostname: frs.sourceforge.net
Username: Your SourceForge.net Username
Password: Your SourceForge.net Password
Port: 22
In this example, we are using the username jfdev and the project sf-training

The same applies to managing Developer webspace, you just have to enter the path /home/userweb/htdocs/
To manage Project web space, enter the path /home/project-web/PROJECT_UNIX_NAME/htdocs/

Batch mode

To use SFTP in batch mode, you need:

  • Use key-based authentication, since password entry can't safely be automated.
  • Have the batch file in the form of "put filename1 \n put filename 2 \n etc..."

Related

Documentation: Release Files for Download
Documentation: SSH Key Fingerprints
Documentation: SSH
Documentation: ToC
Site Support: #11686