We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

issue ssh connection refused (need more understanding) [answered]

asked 2014-11-28 13:39:44 +0300

cemoi71 gravatar image

updated 2014-11-28 15:05:04 +0300

Hello everybody,

i have a problem with the ssh service when i try to connect me from a terminal to the jolla-phone in devel mode with ssh. every time when i put the phone in dev-mode, with ssh with a self-choosen pwd. I try then to connect me with ssh (ssh nemo@ip_addr) i get the answer back "ssh: connect to host 192.168.1.199 port 22: Connection refused" even if i try on the phone with localhost. Same issue with sftp (filezilla).

The problem is i read a lots a threads here and it help me not really with my understanding.

One specially i found really interesting: https://together.jolla.com/question/52337/ssh-connection-refused/ I try to ask to this thread actors to get a contact for more precision.

1) what does mean Venty with "Be aware that the SSH Hostkey changes, so you will get a warning by your client. "?

2) If we try to restart sailfish while it is in dev mode, and (or not) with ssh protocol. Could damage something in config?

3) What's happened to ssh protocol, that he should restart the os? How could we search more info on the issue, if it occurs?

It seems that since the thread is solved, nobody could be aware about new remarks for help. And we can't reopen it too.

So, that why i make a kind of duplicate, which is not a duplicate, because it is for my issue, with my understanding.

It's a little bit, odd. but need some help from skilled people. Jolla support seems to be really busy, with their bugfix, and new jolla campaign.

Further information in my issue, it don't work, and did never do it since i get the device, even if I restart it. What i've remarked, the ssh_config data is completed remarked, no option are active as set... I don't know if it helps...

Have a Nice day, a thanks in advance for any help.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by chemist
close date 2014-11-29 00:59:19.100505

Comments

1 Answer

Sort by » oldest newest most voted
3

answered 2014-11-28 13:54:27 +0300

chemist gravatar image

updated 2014-11-28 14:02:07 +0300

I guess sshd is not running, from your wording you activate and deactivate devel-mode upon need right? Iirc sshd does not start automatically, you need to have a reboot (or start it by hand).

  1. Hostkey, he probably meant that every time you toggle dev-mode your device ssh host key gets changed, no idea if that is so.
  2. I have my device in dev-mode since day one, never changed it, sshd always on, so no having it active does not harm your device.
  3. iirc you need to restart your device after the initial setup of dev-mode (or start services by hand) as the sshd for example did not get started by toggling dev-mode on.

Quick and dirty, enable dev-mode, reboot your jolla, try again.

edit flag offensive delete publish link more

Comments

hi chemist. thank you very much for your fast answer. I have a lots of question then...

Do you mean by iirc " If I remember correctly"?

Could you tell me how could we start sshd from hand? simply with "start sshd"? I don't want every time i make my test to restart the phone...

Could we see if it works with "ps -aux | grep sshd"? or is it something tricky? How could we get if the infos goes to the right port? nmap is not installed on it. Do you think it's normal that the ssh config file is inside complete remarked? port should be standard (22) right?

cemoi71 ( 2014-11-28 15:14:47 +0300 )edit

systemctl status sshd.service will show well, its status... starting it will need systemctl start sshd.service - it will use port 22 if not specified in the config otherwise to setup configs with comments is common practice to show everything with default values, if not altered by hand it is as good as a helpfile/guide to the config options and listing of their default values. Normal lines should reflect "changes" from default

chemist ( 2014-11-28 17:08:30 +0300 )edit

thanks to you chemist, i have now some material to test later at home :-) i'll feedback you afterwards.surely not today

cemoi71 ( 2014-11-28 17:49:11 +0300 )edit
1

yes !!! it works!! thank you very much chemist. the only things that missed in your post was, the command systemctl start sshd.service work only with devel-su root. Then, it rocks. :-) thank you

cemoi71 ( 2014-11-28 22:13:34 +0300 )edit

Question tools

Follow
2 followers

Stats

Asked: 2014-11-28 13:39:44 +0300

Seen: 736 times

Last updated: Nov 28 '14