进入/etc/rc5.d
启动:sudo ./S20ssh start
关闭:sudo ./S20ssh stop
[讨论]ssh打开与关闭
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 31
- 注册时间: 2006-10-14 18:37
- internet
- 帖子: 11
- 注册时间: 2006-09-12 16:24
- 联系:
-
- 帖子: 15
- 注册时间: 2012-03-21 20:48
Re: [讨论]ssh打开与关闭
不知到我用了什么命令,启动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??
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??