maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   disabling ssh server on n900 (https://talk.maemo.org/showthread.php?t=37744)

DaveQB 2010-01-03 13:50

Re: disabling ssh server on n900
 
DrWilken
No problems.

I have noticed with the ssh server that I can't login remotely [and maybe locally but can't be tested] until I open a login shell.

Initially I thought it to be a PITA, but I guess its a nice safety feature, if it is indeed such.

Anyone else with this or is it something unique to mine?
Thanks.

DrWilken 2010-01-03 13:58

Re: disabling ssh server on n900
 
I haven't noticed this (but I disabled the ssh server so I always open a login shell to start ssh before using it anyways)... ;)

DaveQB 2010-01-03 14:13

Re: disabling ssh server on n900
 
Quote:

Originally Posted by DrWilken (Post 451139)
I haven't noticed this (but I disabled the ssh server so I always open a login shell to start ssh before using it anyways)... ;)

Cool. I am kinda liking this "feature"

DrWilken 2010-01-03 14:18

Re: disabling ssh server on n900
 
Quote:

Originally Posted by DaveQB (Post 451152)
Cool. I am kinda liking this "feature"

Yeah, it actually makes sense... ;)

bbhl 2010-01-03 21:12

Re: disabling ssh server on n900
 
DrWilken, thanx for pointing to the update-rc.d...
The "update-rc.d -f ssh remove" does the job and sshd does not come up after restart or whatsoever... Now it is only by demand through the "/etc/init.d/ssh start|stop"... At least it works for me.... ;)

DrWilken 2010-01-03 21:20

Re: disabling ssh server on n900
 
Glad I helped out... ;)

DaveQB 2010-01-03 23:09

Re: disabling ssh server on n900
 
Quote:

Originally Posted by bbhl (Post 451647)
DrWilken, thanx for pointing to the update-rc.d...
The "update-rc.d -f ssh remove" does the job and sshd does not come up after restart or whatsoever... Now it is only by demand through the "/etc/init.d/ssh start|stop"... At least it works for me.... ;)

I thought upstart was meant to be SysV compatible. I was surprised Debians update-rc.d script was not working when reading this thread.

Good work DrWilken

bbhl 2010-01-04 16:26

Re: disabling ssh server on n900
 
The other thing I'm thinking about... is there any way to create a shortcut to start/stop ssh as root through the main menu?
Just like one I have for VNC under the user:

Nokia-N900-42-11:/usr/share/applications/hildon# cat x11vnc.desktop
[Desktop Entry]
Encoding=UTF-8
Version=0.93
Type=Application
Name=x11vnc
Exec=/usr/bin/x11vnc
Icon=control_device_setup
X-Window-Icon=control_device_setup
X-Window-Icon-Dimmed=control_device_setup
Nokia-N900-42-11:/usr/share/applications/hildon#


Or may be there is a way to start ssh under the user?
Most probably this may work: http://svashishtha.wordpress.com/200...ost-on-ubuntu/.
Well.. the only thing that I did forget about is that if there is no sshd up, it won't be possible to do a ssh root@localhost to start up sshd... :D
sshd stopping does work through this WA. ;)

adrianp 2010-01-04 20:05

Re: disabling ssh server on n900
 
Quote:

Originally Posted by DaveQB (Post 451780)
I thought upstart was meant to be SysV compatible. I was surprised Debians update-rc.d script was not working when reading this thread.

There is the following package in Ubuntu/Debian for this :-
Code:

upstart-compat-sysv - compatibility for System-V-like init
I suspect the idea is to move away from sys-v and just use upstart combined with if-up/down.d for network scripts. Bit confusing for "old-timers" like myself but I'm gradually getting the hang if it.

DaveQB 2010-01-04 23:37

Re: disabling ssh server on n900
 
Quote:

Originally Posted by bbhl (Post 452669)
The other thing I'm thinking about... is there any way to create a shortcut to start/stop ssh as root through the main menu?
Just like one I have for VNC under the user:

Nokia-N900-42-11:/usr/share/applications/hildon# cat x11vnc.desktop
[Desktop Entry]
Encoding=UTF-8
Version=0.93
Type=Application
Name=x11vnc
Exec=/usr/bin/x11vnc
Icon=control_device_setup
X-Window-Icon=control_device_setup
X-Window-Icon-Dimmed=control_device_setup
Nokia-N900-42-11:/usr/share/applications/hildon#


Or may be there is a way to start ssh under the user?
Most probably this may work: http://svashishtha.wordpress.com/200...ost-on-ubuntu/.
Well.. the only thing that I did forget about is that if there is no sshd up, it won't be possible to do a ssh root@localhost to start up sshd... :D
sshd stopping does work through this WA. ;)


As root:
Code:

visudo
O
user ALL = NOPASSWD: /usr/bin/x11vnc
[ESC]
:x

Now change the the exec line to:

Code:

Exec=/usr/bin/sudo /usr/bin/x11vnc


All times are GMT. The time now is 17:43.

vBulletin® Version 3.8.8