Kodi Community Forum

Full Version: Copy file from windows to XBMC (through SSH)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using openelec... I would post this question on their forums, but since it's based on linux and i like this forum, i figure i'd ask here to see if you guys can help me out


i'm using putty to SSH into xbmc/openelec without a problem..but i have a question

i have to update the librtmp.so.0 file which i found in /usr/lib/ ...but how do i do it through ssh?

i know that cp will just copy the file..but that's for the same machine..my file is on my windows computer that i'm using to ssh into xbmc..

i'm not extremely well-versed in linux...so this may be a simple command...if anyone can help me out..thanks!
What about just using a thumbdrive to move the file from your Windows PC to your OpenELEC PC?
I copy files to my OE box through one of two means:

1. Using Windows Networking (depends on whether /usr/lib is published onto the network along with all the config files) - but you could copy it somewhere else and then mv it around the local filesystem

2. Via the mounted NFS NAS volumes on which I keep my media (i.e. copy it from PC to network and thence back to the OE box)

A quick Google suggests that PuTTY has an SCP copy tool:

http://www.chiark.greenend.org.uk/~sgtat...l#faq-pscp

http://tartarus.org/~simon/putty-snapsho....html#pscp

... although I'd guess that you'd need the relevant daemon running on the OpenElec system (as you would if you wanted to use FTP, it may or may not be installed/started by default).
(2012-09-20, 16:57)artrafael Wrote: [ -> ]What about just using a thumbdrive to move the file from your Windows PC to your OpenELEC PC?

that would end up being the same thing...cp only involves local files and the thumbdrive is not local for the commands...or maybe i'm not understanding linux commands correctly

(2012-09-20, 17:04)Prof Yaffle Wrote: [ -> ]I copy files to my OE box through one of two means:

1. Using Windows Networking (depends on whether /usr/lib is published onto the network along with all the config files) - but you could copy it somewhere else and then mv it around the local filesystem

2. Via the mounted NFS NAS volumes on which I keep my media (i.e. copy it from PC to network and thence back to the OE box)

A quick Google suggests that PuTTY has an SCP copy tool:

http://www.chiark.greenend.org.uk/~sgtat...l#faq-pscp

http://tartarus.org/~simon/putty-snapsho....html#pscp

... although I'd guess that you'd need the relevant daemon running on the OpenElec system (as you would if you wanted to use FTP, it may or may not be installed/started by default).

I don't have NFS NAS...but the first suggestion makes complete sense...I can just use the default networking, copy it to one of the folders, then use putty to copy it to usr/lib/....thanks!
(2012-09-20, 18:20)truthlesshero Wrote: [ -> ]
(2012-09-20, 16:57)artrafael Wrote: [ -> ]What about just using a thumbdrive to move the file from your Windows PC to your OpenELEC PC?

that would end up being the same thing...cp only involves local files and the thumbdrive is not local for the commands...or maybe i'm not understanding linux commands correctly
The thumbdrive will be mounted as another local drive on that system.
From your Windows box try WinSCP http://winscp.net/eng/docs/free_ssh_client_for_windows and copy to somewhere in /home/<user> the file(s) you need to get onto *nix box.

Then ssh in with Putty as well to cp the files to actual target directory...may need root or sudo access for this.

You could try SCP'ing directly too, but I recommend 2 part directions.

Aside: if you're doing *nix to *nix simple file transfer then 'zssh' installed via the 'lzrz' package works very well.

You do not need a shared folder for any of these solutions...
install filezilla on the Windows machine. Log into the openelec machine. drag the file over.

I'm not a linux or openelec guy, but I know you can do this with a XBMCBuntu machine.
(2012-09-21, 06:12)maddog808 Wrote: [ -> ]install filezilla on the Windows machine. Log into the openelec machine. drag the file over.

I'm not a linux or openelec guy, but I know you can do this with a XBMCBuntu machine.

ya..the problem is that openelec is read-only for system files...xbmcbuntu doesn't have this problem..

but no worries, i converted to xbmcbuntu and life is better
hehe
Quote:that would end up being the same thing...cp only involves local files and the thumbdrive is not local for the commands...or maybe i'm not understanding linux commands correctly
You don't understand the commands correctly. Yes cp is for local files, but mounted filesystems, including SMB mounts, are treated as local file systems. A thumbdrive would be local from Linux's perspective. You might have to issue a mount command to see where it's mounted, but cd'ing to that mount point would show all the files. An SMB aka SAMBA mount is local as well, so as long as your permissions on the Windows box allow it, you can transfer files with cp that way as well.
Or you could use Winscp. Should do the trick,
I could also reccomend putty. that my favorite

http://www.chiark.greenend.org.uk/~sgtat...nload.html
xbmc has a file manager, just saying.