SFTP: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>UNiversal
mNo edit summary
 
(45 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{incomplete}}
{{mininav| [[File sharing]] }}
{{XBMC wiki toc}}
<section begin="intro"/>Kodi ships with [[w:SSH File Transfer Protocol|SFTP (SSH File Transfer Protocol)]] (not to be confused with FTP) client support for accessing file shares.<section end="intro"/>
As of XBMC v10 (Dharma), XBMC ships with [[w:SSH File Transfer Protocol|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==
You can also use SFTP as a way to connect to some Kodi devices, such as Kodibuntu.


== Adding SFTP as a media source ==
{{see also|Adding_video_sources}}
# Add Videos
# Add Videos
# Browse
# Browse
Line 11: Line 12:
# Complete other fields as required
# Complete other fields as required


== Connecting to Kodibuntu via SFTP ==


'''SSH Source Example (source.xml):'''
Kodibuntu ships with [http://www.openssh.org/ Openssh server], making it easier to access your files via SSH/SFTP. Alternative installations that contain Openssh can also use the method below to connect.
<code>
    &lt;video>
        &lt;source>
        &lt;name>Remote SFTP Videos</name>
        &lt;path>sftp://username:password@server.com/share/videos/&lt;/path>
      &lt;/source>
    &lt;/video>
</code>


== Connecting to XBMCbuntu via SFTP ==


From XBMCbuntu v11 (Eden) and newer, ships with [http://www.openssh.org/ 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'''


* [http://filezilla-project.org/ FileZilla]
* [http://cyberduck.ch/ Cyberduck]
* [http://www.flashfxp.com/ FlashFXP]


'''Examples of SFTP clients'''
'''Connecting to Kodibuntu SFTP'''


*[http://filezilla-project.org/ FileZilla]
During the installation of Kodibuntu you have to supply a username and a password. This username and password combination has to be used if you want to connect via SFTP
*[http://cyberduck.ch/ Cyberduck]
*[http://www.flashfxp.com/ FlashFXP]
 
'''Connecting to XBMCbuntu SFTP'''


# Choose a SFTP client and open an instance
# Choose a SFTP client and open an instance
# Enter The XBMC box IP (e.g. 192.168.1.80)
# Enter The Kodi box IP (using Filezilla e.g. sftp://192.168.1.254)
# Choose port '''22'''
# Choose port '''22'''
# For '''username''' the login name you chose during install
# For '''username''' the login name you chose during install
# For '''password''' the password you chose during install
# For '''password''' the password you chose during install


== Connecting to XBMCbuntu via SSH ==
[[File:Fileziilamain.png|500px]]
 
While you can use a SFTP GUI application to transfer and edit files similar can be achieved via command line
 
=== Windows SSH using putty ===
 
[[File:Putty1.png]]
 
'''The first time you connect this may ask you something like:'''
 
[[File:Putty2.png]]
 
Click '''Yes'''
 
=== Linux or OS X SSH ===


From a Linux or OS X shell. The command is:
During first time connecting you will see a '''security warning''' irrespective of client used.


<pre>
[[File:Filezzilawarning.PNG]]
  ssh <username>@&lt;ip address>
</pre>


'''The first time you connect this may ask you something like:'''
Select '''OK''' or '''Yes'''


<pre>
  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)?
</pre>


Type '''yes'''


[[Category:File Sharing]]
[[Category:Manual]]
[[Category:File sharing]]

Latest revision as of 23:28, 29 January 2021

Home icon grey.png   ▶ File sharing ▶ SFTP

Kodi ships with SFTP (SSH File Transfer Protocol) (not to be confused with FTP) client support for accessing file shares.

You can also use SFTP as a way to connect to some Kodi devices, such as Kodibuntu.

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

Connecting to Kodibuntu via SFTP

Kodibuntu ships with Openssh server, making it easier to access your files via SSH/SFTP. Alternative installations that contain Openssh can also use the method below to connect.


Examples of SFTP clients

Connecting to Kodibuntu SFTP

During the installation of Kodibuntu you have to supply a username and a password. This username and password combination has to be used if you want to connect via SFTP

  1. Choose a SFTP client and open an instance
  2. Enter The Kodi box IP (using Filezilla e.g. sftp://192.168.1.254)
  3. Choose port 22
  4. For username the login name you chose during install
  5. For password the password you chose during install

Fileziilamain.png

During first time connecting you will see a security warning irrespective of client used.

Filezzilawarning.PNG

Select OK or Yes