[讨论]ssh打开与关闭

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
bingwu
帖子: 31
注册时间: 2006-10-14 18:37

[讨论]ssh打开与关闭

#1

帖子 bingwu » 2006-10-16 13:00

进入/etc/rc5.d
启动:sudo ./S20ssh start
关闭:sudo ./S20ssh stop
头像
internet
帖子: 11
注册时间: 2006-09-12 16:24
联系:

#2

帖子 internet » 2006-10-18 9:44

sudo: ./S20ssh: command not found

沒有这个命令??
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2006-10-18 11:21

/etc/init.d/ssh
● 鸣学
xxaqustc
帖子: 15
注册时间: 2012-03-21 20:48

Re: [讨论]ssh打开与关闭

#4

帖子 xxaqustc » 2013-04-24 16:41

不知到我用了什么命令,启动ssh之后出现两个sshd进程:
2121 ? 00:00:00 ssh-agent <defunct>
4196 ? 00:00:00 sshd
4343 ? 00:00:00 sshd
不想让远程主机链接到我的主机,于是:
sudo /etc/init.d/ssh stop
查询:
ps -e|grep ssh
结果显示还是两个sshd:
yijiedao@ubuntu:~$ sudo /etc/init.d/ssh stop
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh stop

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) utility, e.g. stop ssh
yijiedao@ubuntu:~$ ps -e|grep ssh
2121 ? 00:00:00 ssh-agent <defunct>
4196 ? 00:00:00 sshd
4343 ? 00:00:00 sshd

求大神,如何关掉我的ssh??
回复