How to stop SSH?
Please help: How to stop SSH server on N9?
Code:
/sbin/initctl start ssh Code:
/sbin/initctl stop ssh Code:
initctl: Job has no running instances: ssh |
Re: How to stop SSH?
maybe name is sshd
|
Re: How to stop SSH?
Tried that too:
Code:
# /sbin/initctl stop sshd |
Re: How to stop SSH?
that impossible. You may have some typo in command. Try just
Code:
stop ssh |
Re: How to stop SSH?
And do not try to call that command twice in a row.
As it will produce these messages: Code:
~ # /sbin/initctl stop ssh |
Re: How to stop SSH?
Code:
~ # /sbin/initctl start ssh Code:
killall sshd |
Re: How to stop SSH?
Yes, 'killall sshd' will stop the currently running instance.
But it will be respawned thrice aitomatically: Quote:
Please check /sbin/initctl status ssh and ps | grep ssh after launching with /sbin/initctl start ssh Maybe this reveals abit more, else check logs (e.g. /var/logs/syslog) and/or check configs in /etc/ssh/ -- BTW What about ssh status check with ssh root@localhost ? |
Re: How to stop SSH?
It's not respawning in my case after "killall sshd".
Code:
~ # ps | grep ssh I'am doing all of that with DeveloperMode disabled. |
Re: How to stop SSH?
I guess your only problem is that probably the ssh upstart script is broken so that init/upstart actually "forgets" it has started sshd. Can you post the init script?
Does Jolla use upstart at all? |
Re: How to stop SSH?
1 Attachment(s)
Here is my sript:
|
Re: How to stop SSH?
problem is inside sshd_config
|
Re: How to stop SSH?
1 Attachment(s)
Ok, thanks for the advice. What could messed up the script...?
|
Re: How to stop SSH?
looks ok. check /etc/default/ssh
and try to reinstall openssh-server package |
Re: How to stop SSH?
I reinstalled openssh-server but that did not help, so I reinstalled Developer mode and now every command with SSH is working fine:)
And yes, there was some mess in /etc/default/ssh becouse I made a lot of typos in command Code:
echo -e 'mkdir -m 0755 -p /var/run/sshd\nexec /usr/sbin/sshd $SSHD_OPTS' >> /etc/default/ssh |
Re: How to stop SSH?
Quote:
|
Re: How to stop SSH?
Instructions from here: http://talk.maemo.org/showthread.php?t=79645
|
Re: How to stop SSH?
OMG
This you could have said earlier ;) And after reading that mentioned thread I would never follow such advice without cross checking. 1 it is a bad idea to enable root login via password (at least in public places and possibly even not having changed root pw). 2 this 'patch' works for enabling PermitRootLogin, but it breaks all following source in /etc/init/ssh.conf 3 so it would be much easier (and more straight-forward) to edit /etc/init/ssh.conf directly and set PermitRootLogin=yes or use that one Code:
sed -i -e s/-o PermitRootLogin=no// /etc/init/ssh.conf |
Re: How to stop SSH?
But when server is stopped there is no security threat?
Of course I changed root pw. I'm using my N9 only with my home network and with N900(3G) bluetooth NAP > N9 internet. |
All times are GMT. The time now is 21:56. |
vBulletin® Version 3.8.8