I can not close ssh server

Asked by CodeVampire

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:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you ever need the ssh server?

Revision history for this message
Best mycae (mycae) said :
#2
Revision history for this message
CodeVampire (yangwenhan-1008-4) said :
#3

Thanks mycae, that solved my question.

Revision history for this message
CodeVampire (yangwenhan-1008-4) said :
#4

/etc/init/ssh.conf

comment out these lines

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

and restart