Installing CentOS 6 and SSH configuration under Windows 8 Hyper-V

Hyper-V under Windows 8 already supports many Linux distributions, and the installation under it is similar. The only thing to note is to download and install the integrated service of Hyper for linux separately. Now the latest version is 3.2, download the ISO file: http://www.microsoft.com/zh-cn/download/details.aspx?id=28188

1 ) Open the Hyper-V manager and create a new virtual machine, install centos 6 normally, select the basic server during installation. After the installation is complete, restart.

2 ) In Hyper-v, insert the downloaded iso file: Linux IC v3.2.iso

Then run the following command to load the files in the CD-ROM drive

mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom

mnt/cdrom/install.sh

After the installation is complete, the virtual machine must be restarted again.

Run after restart:

ifconfig -a

You will find that the network card has been loaded, and then edit: vi /etc/sysconfig/network-scripts/ifcfg-eth0 (also can be configured through the command ifconfig)

The content is as follows:

DEVICE="eth0"

HWADDR="00:1c:29:8C:BB:E6"

NETMASK=255.255.255.0

IPADDR=192.168.1.200

GATEWAY=192.168.1.11

ONBOOT=yes

Restart afterwards:

/etc/init.d/network restart # Or command: service network restart

ifconfig eth0, look at the actual configured ip address.

OpenSSH is already installed by default on CentOS, even if you have a minimal installation. So the installation of OpenSSH is not introduced here.

SSH configuration:

Modify vi /etc/ssh/sshd_config, remove the parameter comments to be modified according to the template and modify the parameter values:

Port 22 specifies the port number for SSH connection. It is not recommended to use the default port 22 for security.

Protocol 2,1 allows SSH1 and SSH2 to connect, it is recommended to set to Protocol 2

Other parameters are adjusted according to their needs. For the configuration method, see: man ssh_config

Start SSH

/etc/init.d/sshd start

http://www.cnblogs.com/trams/archive/2012/04/29/2476175.html

http://www.cnblogs.com/pharen/archive/2012/02/06/2339986.html

[ Linux Integration Services 3.4 Installation Manual-Take CentOS 6.3 as an example](http://blog.miniasp.com/post/2013/02/05/How-to-install-Linux-Integration-Services-Version-34-for- Hyper-V-on-CentOS-63.aspx)

Linux implements broadband sharing Internet access with Windows in Hyper-V

How to configure the Hyper-V virtual machine to access the Internet through the host network (NAT)

Recommended Posts

Installing CentOS 6 and SSH configuration under Windows 8 Hyper-V
Java-JDK installation and configuration under CentOS
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Installation and configuration of redis under centos7
CentOS 7 installation and configuration graphic tutorials under VMware10
Install svn and configuration through yum under CentOS
Installation and configuration of rsync server under CentOS 6.5
Environment configuration of JDK, mysql and tomcat under Centos7
Centos mysql installation and configuration
Centos7 installation and configuration prometheus
CentOS 7 installation and configuration PPTP
CentOS installation and configuration cmake
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
Detailed explanation of Spark installation and configuration tutorial under centOS7
Method steps for installing and configuring SSH service under Ubuntu 18.04
Centos7 installation and configuration of Jenkins
Install and configure keepalived under CentOS 5.9
Compile and install LAMP under Centos 5.2
CentOS 8 install Git and basic configuration
Use Nginx and u under CentOS
Centos7 hadoop cluster installation and configuration
Upgrade OpenSSL and OpenSSH under CentOS7
CentOS7.2 and Nginx configuration virtual host
Deploy and optimize Tomcat under Centos
Redis installation under ubuntu and windows
Install Python3 and ansible under CentOS8
Install and use docker under CentOS 6.8
Centos 7 RAID 5 detailed explanation and configuration
CentOS NTP server installation and configuration
Install Python3 and Py under CentOS7
Erlang 20.2 installation and deployment under CentOS 7
Windows Ubuntu subsystem ssh and ftp
Centos7 mysql database installation and configuration
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Tutorial diagram for installing zabbix2.4 under centos6.5
CentOS 7 system installation and configuration graphic tutorial
A brief introduction to yum source configuration and nmcli commands under CentOS8
Compile and install libmodbus library under CentOS7
Installation and use of Mysql under CentOS
Zabbix installation and deployment and localization under CentOS
Graphical tutorial for installing JDK1.8 under CentOS7.4
Jenkins installation and deployment tutorial under CentOS 7
Install Mono 2.10.8 and Jexus 5.0 under 32- and 64-bit CentOS 6.0
KVM installation and preliminary use under CentOS 7.2
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Centos7 configuration host name and IP address
Installation and configuration of JDK in CentOS 7 system
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Errors and solutions for installing remix-ide on CentOS
CentOS7 and Docker configuration Chinese character set problem
Notes on installing pptp server under CentOS 7 ok
Centos7.6 dual network card configuration and switching test
Kaldi installation and configuration graphic tutorials under Ubuntu
Installation and configuration of CentOS 7 in VMware Workstation
MySQL 8.0 installation and deployment under CentOS, super detailed!
Distributed deployment of Apollo configuration center under CentOS8
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
CentOS7.0 network configuration
CentOS 7.0 network configuration