User avatar
Pencoys
Posts: 40
Joined: Fri Jan 13, 2012 8:48 am

SSH - what have I done

Sun May 13, 2012 9:35 pm

Good evening folks,
Playing with the command line today, after reading about SSH and the script in the /boot/ area.
I looked at the script, did'nt want to change anything without need and thought I would try executing the commands contained in the script from the command prompt , this is in Debian 19-04.

Well all went well and after entering...

sudo insserv ssh
sudo service ssh start

it loaded and ran SSH with Putty on the windoze box connecting flawlessly.
However, now after a cold reset (power off for 5 mins during tea break), SSH runs on rebooting.
I hav'nt knowingly altered anything in the startup scripts,
/boot/boot.rc does'nt exist,
/etc/insserv.conf has no mention of SSH in it..
So, where is the Pi getting SSH command from?.

On another topic. I seem to be reinstallijng the OS everytime things go sideways, Is there any way to save downloaded scripts/programs locally so I don't need to apt-get them all again ?

As you can see, having most fun on a computer that I have had for years, not since the Einstein and CP/M 2,2

later, Mike

User avatar
nick.mccloud
Posts: 804
Joined: Sat Feb 04, 2012 4:18 pm

Re: SSH - what have I done

Mon May 14, 2012 8:08 am

Pencoys wrote: sudo insserv ssh
I hav'nt knowingly altered anything in the startup scripts,
Inadvertently you have - insserv reads the ssh scripts and sets up the required boot time startup script in rc.d

sudo insserv -r ssh will remove the entry for you.

You can backup the apt-get cache (I locally ftp the content back & forth) to save on download time but you can also setup a caching proxy as well.

User avatar
RaspberryPiBeginners
Posts: 220
Joined: Fri May 11, 2012 6:54 am
Location: Soham, Cambridgeshire
Contact: Website

Re: SSH - what have I done

Mon May 14, 2012 8:42 am

Checkout this video it will show you how to enable SSH on Debian and service a reboot

http://www.youtube.com/watch?v=SmMMKojOE4U
Click here for my unofficial YouTube Channel > http://goo.gl/oFYBD

User avatar
nick.mccloud
Posts: 804
Joined: Sat Feb 04, 2012 4:18 pm

Re: SSH - what have I done

Mon May 14, 2012 10:33 am

RaspberryPiBeginners wrote:Checkout this video it will show you how to enable SSH on Debian and service a reboot

http://www.youtube.com/watch?v=SmMMKojOE4U
Except he doesn't want to enable because he already has!

Return to “Beginners”