SFTP

From Official Kodi Wiki
Revision as of 11:43, 16 November 2012 by >UNiversal
Jump to navigation Jump to search
Cleanup.png This page or section may require cleanup, updating, spellchecking, reformatting and/or updated images. Please improve this page if you can. The discussion page may contain suggestions.



Template:XBMC wiki toc As of XBMC v10 (Dharma), XBMC ships with SFTP (SSH File Transfer Protocol) (not to be confused with FTP) client support for media. You can use SFTP to add as a media source or as a way to connect to the machine that has XBMCbuntu v11 (Eden) and upwards installed, which contain Openssh server installed.

Adding SFTP as a media source

  1. Add Videos
  2. Browse
  3. Add network location
  4. Select SSH/SFTP from the protocol menu
  5. Complete other fields as required


SFTP Source Example (source.xml):

     <video>
        <source>
         <name>Remote SFTP Videos</name>
         <path>sftp://username:[email protected]/share/videos/</path>
       </source>
     </video>

Connecting to XBMCbuntu via SFTP

From XBMCbuntu v11 (Eden) and newer, ships with Openssh server, making it easier to access your files via SSH/SFTP. Alternative installations that contain Openssh can use the method below to connect.


Examples of SFTP clients

Connecting to XBMCbuntu SFTP

  1. Choose a SFTP client and open an instance
  2. Enter The XBMC box IP (e.g. 192.168.1.80)
  3. Choose port 22
  4. For username the login name you chose during install
  5. For password the password you chose during install

Connecting to XBMCbuntu via SSH

While you can use a SFTP GUI application to transfer and edit files similar can be achieved via command line

Windows SSH using putty

  1. Under Host name (or IP address) enter the desired IP (e.g. 192.168.1.80)
  2. Under port enter 22
  3. Click Open


Putty1.png


The first time you connect this may ask you something like:


Putty2.png


Click Yes

Linux or OS X SSH

From a Linux or OS X shell. The command is:

   ssh <username>@<ip address>

The first time you connect this may ask you something like:

   The authenticity of host '192.168.1.80 (192.168.1.80)' can't be established.
   RSA key fingerprint is ad:4d:14:4d:74:19:fa:f1:fa:c6:ee:81:36:29:be:f4.
   Are you sure you want to continue connecting (yes/no)?

Type yes