先是,下载和安装VMware 去http://mirror-status.centos.org/选一个比较近的镜像站点下载到CentOS.iso后安装到VMware中。 继续,CentOS安装SSH。 安装SSH 在终端输入 yum install ssh 难点,Windows下使用ssh登入VMware虚拟机中的Linux系统相关设置。 VMware中选Edit->Virtual Network Editor 进入VM->Settings OK,这里设置好了,在centos中使用的就是NAT连接模式了。 查看两个系统ip并测试 ping 查看vmware虚拟机中ip我们可以使用命令 ifconfig 查看CentOS的ip 上面图片,可以看到这一行: inet addr:192.168.174.128 Bcast:192.168.174.255 Mask:255.255.255.0 int addr:192.168.174.128 是CentOS的ip地址 在win7 cmd 中使用命令 ipconfig 命令查看本地连接ipv4地址 我的ip是:169.254.68.68 在CentOS终端ping 169.254.68.68 通过 在Win7 cmd 中ping 192.168.174.128 通过 在centos中已经安装了sshd 所以只需要开启服务即可, service sshd start 设置开机自启动 chkconfig sshd on 重启服务 service sshd restart 查看服务是否开启 ps -le|grep sshd 可以显示sshd信息,就说明服务以及开启了! 最后,下载putty.exe,连接。 CentOS安装SSH参考 http://www.cnblogs.com/alaska1131/articles/1659654.html http://www.cnblogs.com/nwf5d/archive/2011/03/28/1998002.html http://blog.163.com/bill_succeed/blog/static/45913286201121015533153/ |