---
title: "虚拟机安装centos6.3 sh配置"
author: "blueyanghualong"
date: "2012-09-02T00:22:15Z"
tags: []
categories: ["操作系统"]
slug: "centos6-3-sh"
draft: false
lastmod: "2012-09-02T00:32:43Z"
id: 1669593
url: "https://smalltalllong.iteye.com/blog/1669593"
---

1 安装完毕后 先关闭防火墙
  /etc/init.d/iptables status/stop
2 open sshd
cd /etc/init.d 
sshd stutas/start

3  ssh ip  then  exception  log:
ssh_exchange_identification: Connection closed by remote host

so  解决办法：
Way1:
目标计算机变更，把用户主目录下的.ssh/删除就可以了
Way2:
修改/etc/hosts.allow文件，加入 sshd:ALL。

4 it is oK!!
   