ssh远程关机的问题。

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
gamexg
帖子: 72
注册时间: 2007-01-27 14:06
送出感谢: 0
接收感谢: 0

ssh远程关机的问题。

#1

帖子 gamexg » 2007-02-16 15:00

我用ssh关闭一个虚拟机,关不掉。

gamexg@ubuntu:~$ ssh 192.168.1.50
The authenticity of host '192.168.1.50 (192.168.1.50)' can't be established.
RSA key fingerprint is 68:49:0d:c7:85:9a:26:48:fb:78:d7:aa:f3:e2:9c:f1.
Are you sure you want to continue connecting (yes/no)? yes
]Warning: Permanently added '192.168.1.50' (RSA) to the list of known hosts.

gamexg@192.168.1.50's password:
Linux server1 2.6.17-10-server #2 SMP Fri Oct 13 18:47:26 UTC 2006 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Fri Feb 16 22:22:46 2007

gamexg@server1:~$ sudo shutdown now

Broadcast message from gamexg@server1
(/dev/pts/0) at 22:36 ...

The system is going down for maintenance NOW!
gamexg@server1:~$ Connection to 192.168.1.50 closed by remote host.
Connection to 192.168.1.50 closed.


服务器本来一个登录的本地控制台都没有,但是现在却出现了个root的控制台。
root控制台可以使用,但是系统就是不关机。
gamexg
帖子: 72
注册时间: 2007-01-27 14:06
送出感谢: 0
接收感谢: 0

#2

帖子 gamexg » 2007-02-16 15:33

sudo init 0
可以完全关闭。
gamexg
帖子: 72
注册时间: 2007-01-27 14:06
送出感谢: 0
接收感谢: 0

#3

帖子 gamexg » 2007-02-16 16:18

已解决,sudo shutdown -h now可以关闭
HadesEnduos
帖子: 193
注册时间: 2005-12-27 14:05
来自: 中国
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 HadesEnduos » 2007-02-23 0:15

代码: 全选

sudo poweroff
sudo init 0
sudo shutdown -h now
..::Outstanding people always stand out::..

AMD Athlon(tm) 64 Processor 3200+
Kinston DDR400 512MB SS * 2
ASUS A8V Deluxe Wireless Edition - VIA K8T800PRO
Dataland AIW 9800SE - ATI Technologies Inc R350 AH [Radeon 9800]
回复

回到 “服务器基础应用”