I can not close ssh server

Asked by CodeVampire on 2011-06-27

I can not close SSH server .Thus I can not close 22 port .

Every time I boot my computer ,the sshd will run.
I am sure that I have closed ssh server by using rcconf .

if I do like this: sudo /etc/init.d/ssh stop
it shows me that ssh close normally

but if I do this then: sudo /etc/init.d/ssh status
It shows sshd is running .

I don't know it is right or wrong . Do you have the problem .

I use 10.04.2 .

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openssh Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
2011-06-28
Last query:
2011-06-28
Last reply:
2011-06-27

Do you ever need the ssh server?

Thanks mycae, that solved my question.

/etc/init/ssh.conf

comment out these lines

#start on filesystem
#stop on runlevel [!2345]

and restart