SSH problem
#1
Hello guyz, newbie here.

I have reinstalled ubuntu on my desktop pc.

Now i want to continue to use it as server (i used to, before reinstall)

Unfortunately, i get this error: http://paste.ubuntu.com/23575633/

Any idea?

Thank you brotahz
Reply
#2
Ok, further clue.

If i set the server IP to a new value, then it works fine.

If the server (with the newly installed OS) has the same IP as the server with the old OS, then it doesen't work.

Code:
01:02:55  44.555851 T:1795158944   ERROR: SFTPSession: Server that was known has changed
01:02:55  44.555885 T:1795158944   ERROR: SFTPSession: Host is not known 'Invalid argument in ssh_options_set'
01:02:55  44.556190 T:1795158944   ERROR: SFTPSession: Not connected, can't list directory ''
01:02:55  44.556309 T:1963057152   ERROR: GetDirectory - Error getting sftp://USER:[email protected]:22/
01:02:55  44.556377 T:1963057152   ERROR: CGUIDialogFileBrowser::GetDirectory(sftp://USER:[email protected]:22/) failed

So the question is: how can i "reset" then "known IP addresses" in kodi?

Thank you brotahz
Reply
#3
ssh-keygen -R 192.168.1.103 or whatever the original IP of the server is. Then add it again.
Learning Linux the hard way !!
Reply
#4
Ok, i made it connecting via ssh to kodi.
Is there a way to do it -inside- kodi?
Reply
#5
Hi,
I am trying to ssh from my imac to Kodi on my Raspberry pi using terminal. It's asking me for a password. Anyone know what the PW is? I tried 'openelec' , 'raspberry' 'pi' all to no avail.
Any help would be appreciated.
Reply
#6
@bbc0

are you using libreelec?

you have to log in as root, and the password is libreelec. if you're worried about security, you should change it.
Linux Mint 18 LTS 64-bit - Kodi 17 Beta6
Odroid-C2 - Libreelec v7.90.009
Reply
#7
@giallucone I suspect when you reinstalled ubuntu it would have generated a new sshd server key.

ssh clients keep track of server keys, and won't connect if the key has changed - because it likely means it is another server posing as your server and stealing logins etc.

So it is a client issue (or preserve your server key across reinstalls).

PS why are you using SFTP? Are you over an insecure network or something? NFS or SMB is simpler and more efficient on a home lan.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#8
Normally when I download a tv show or something, I do so with and old Windows machine and then transfer the file by bringing the hard drive from my RaspberryPi to the computer and copy to use with Kobi. I thought it would be neat to not keep unplugging the usb HD and thought I'd try ssh-ing the files to Kobi. This works but it's sooo very slow so I thought maybe I would try to FTP but I can't get that to work with Kobi. Tonight I decided to try to connect with my mac and just experiment a bit using terminal, but although it seems to connect OK, it then asks for a password which I was sure was 'openelec' but this fails. It seems to be to do with previously generated keys, but I am not sure where to go to correct this.
Right now, just getting it to work is a learning experience/challenge for me and once I have got it working, I will definitely look for a faster method as security is not an issue.
Reply
#9
@bbc0

1. It is kodi, not kobi

2. you don't ssh a file, you scp it.

3. you haven't told us what os you are using on the ssh server. I assume if you thought the password you must be using openelec, but assumption is the mother of all mistakes.

4. If you are transferring a file to an openelec machine, the commandline would be
Code:
scp filename root@kodiIP:~/
, it will then ask for password which is "openelec".

5. If you are using libreelec, procedure is identical, but pw is libreelec.

6. On both the only user you can login with or use is "root".

7. If you are transferring from a windows machine, winscp will do the same.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#10
Sorry about the typo, obviously I intended to call it Kodi or I would have looked for help elsewhere.

I have installed on my Raspberry PI B, OpenElec ver 6.03. I can connect to it with Bitvise on my Acer Aspire running Win 7. I have transferred files using this setup but the transfer process (ssh) is very slow.

I suppose what I am asking is:
1. What is the best/fastest way for me to send files to my Kodi/Raspberry Pi from my Win 7 machine?
2.What is the best/fastest way for me to send files to my Kodi/Raspberry Pi from my iMac running OS 10.12.1?
Reply
#11
I use scp, but of course I am not dealing with large files.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#12
(2016-12-17, 08:11)nickr Wrote: @giallucone
PS why are you using SFTP? Are you over an insecure network or something? NFS or SMB is simpler and more efficient on a home lan.

No, it's my home network. I use ssh protocol because i'm pretty noob and i just know ssh. Would you like to talk to me about other protocols? Thank you man, i love you.
Reply

Logout Mark Read Team Forum Stats Members Help
SSH problem0