LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-31-2013, 11:32 AM   #1
skilo47
Member
 
Registered: Sep 2012
Posts: 47

Rep: Reputation: Disabled
How to disable sshd in debian wheezy?


I tried to do this -
Code:
update-rc.d ssh disable
But it says ssh overrides?


Code:
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `ssh' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ssh' overrides LSB defaults (empty).
 
Old 05-31-2013, 03:28 PM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Remove the openssh-server package or use sysv-rc-conf to disable it.
 
Old 05-31-2013, 04:31 PM   #3
fail-distraction
LQ Newbie
 
Registered: Jan 2013
Distribution: Debian
Posts: 16

Rep: Reputation: Disabled
If you want to completely remove open ssh

Code:
apt-get remove --purge openssh-server
 
1 members found this post helpful.
Old 05-31-2013, 05:03 PM   #4
skilo47
Member
 
Registered: Sep 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fail-distraction View Post
If you want to completely remove open ssh

Code:
apt-get remove --purge openssh-server
Thanks, That works for me as i never use ssh anyway, I don't think i will mark the thread as solved though until someome posts further information about how to disable it rather than uninstalling it completely.

Last edited by skilo47; 05-31-2013 at 05:06 PM.
 
Old 05-31-2013, 05:08 PM   #5
fail-distraction
LQ Newbie
 
Registered: Jan 2013
Distribution: Debian
Posts: 16

Rep: Reputation: Disabled
If you don't use it why have it installed? Why would you want to just disable it? I wouldn't imagine there would be a way to disable openssh. What would be the point? You could close port 22 I guess. But I really don't understand why install it, then disable it, and never use it?
 
Old 05-31-2013, 05:13 PM   #6
skilo47
Member
 
Registered: Sep 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fail-distraction View Post
If you don't use it why have it installed? Why would you want to just disable it? I wouldn't imagine there would be a way to disable openssh. What would be the point? You could close port 22 I guess. But I really don't understand why install it, then disable it, and never use it?
It was installed by default on my system, But maybe i didn't word my question correctly, What i was really asking was how do i stop sshd from running on startup?
 
Old 05-31-2013, 05:23 PM   #7
fail-distraction
LQ Newbie
 
Registered: Jan 2013
Distribution: Debian
Posts: 16

Rep: Reputation: Disabled
To stop a service you can do

Code:
/etc/init.d/packagename stop
 
1 members found this post helpful.
Old 06-01-2013, 03:13 AM   #8
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
This may sound a silly question, but did you check to see if (even with the warnings) your command was successful?
Is ssh still starting after a reboot?
Under /etc/rc2.d/ ... is the link called K01ssh or S18ssh ? (K = kill service. S = start service. The number represents the order in which they are executed.)
(Similar question in /etc/rc3.d, rc4.d, and rc5.d)
 
Old 06-01-2013, 03:28 AM   #9
fail-distraction
LQ Newbie
 
Registered: Jan 2013
Distribution: Debian
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by Hangaber View Post
This may sound a silly question, but did you check to see if (even with the warnings) your command was successful?
Is ssh still starting after a reboot?
Under /etc/rc2.d/ ... is the link called K01ssh or S18ssh ? (K = kill service. S = start service. The number represents the order in which they are executed.)
(Similar question in /etc/rc3.d, rc4.d, and rc5.d)
I'm not getting an error on my Deb box. My server version and MySql client version are both 5.5.31. I did install MariaDB 10.0 a Debian 7 VM to see what happened. And I did receive the error like I predicted. Everything runs fine. It just tells me in phpmyadmin that they do not match and that it may cause errors. I've Googled it several times and I still don't know which MySql client version is meant to work with mariaDB 10.0. This isn't anything but curiosity. i don't know of any MySql client version being 10.0. I'm just wondering what client version is meant for the 10.0 version. I don't think it refers to the 5.5.10 because the documentation on the MariaDB site has a 5.5 option. The mysql-server package install both the mysql-server and client just like mariadb-server install both client and the server.

So I'm thinking i I start from scratch and install MariaDB 10.0 I'll get my answer since it will install both the client and server. I'll try it in a bit and post back. I realize this is silly to some.. But I really like to learn about this stuff.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Debian Linux vs. Debian kFreeBSD With Squeeze & Wheezy LXer Syndicated Linux News 0 12-12-2012 10:00 PM
[SOLVED] Newly installed debian sid & saved debian wheezy home would like to transfer files EDDY1 Linux - Newbie 11 01-20-2012 07:43 PM
LXer: Debian to offer MultiArch support with Debian Wheezy 7 in 2013 LXer Syndicated Linux News 0 08-11-2011 01:50 AM
LXer: Debian looking at a June 2012 freeze for Debian Wheezy LXer Syndicated Linux News 0 08-10-2011 10:00 AM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration