Chinaunix首页 | 论坛 | 博客
  • 博客访问: 695241
  • 博文数量: 291
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 2400
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-04 12:04
文章分类

全部博文(291)

文章存档

2008年(102)

2007年(112)

2006年(75)

2004年(2)

我的朋友

分类:

2006-10-19 11:02:25

刚安装完ESX后,缺省root用户只能在console上登录,远程用ssh登录是禁止的。因此,安装完的第一件事就是允许root远程ssh登录。

这时来自Server Configuration Guide的做法

 

To change the default SSH configuration

1 Log on to the service console and acquire root privileges.

2 Change directories by entering cd /etc/ssh at the command prompt.

3 Use nano or another text editor to perform any or all of following actions, as

appropriate.

! To allow remote root logon, change the setting to yes in the following line in

the sshd_config file:

PermitRootLogin no

4 Save your changes and close the file.

5 Execute the following command to restart the SSHD service:

service sshd restart

 

另外一种方法是采用传统的发送SIGHUP的方法

先使用ps –ef|grep sshdservice sshd status找到sshdpid, 例如839, 然后kill –HUP 839就可以了

 

阅读(1157) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~