VMware15安装CentOS并开启ssh

主页-->创建虚拟机,选择‘典型’

下一步--选择‘稍后安装操作系统’
下一步--选择linux版本为centos 64位


下一步--设置虚拟机名称以及位置
下一步--设置磁盘空间大小,是否将虚拟磁盘拆分为多个文件
下一步--定义硬件:设置内存大小,处理器核心数量以及线程数,配置好ISO映像文件路径,点击完成

 

 

设置完成!


开启虚拟机,进入安装界面,选择Install CentOS 7 ,启动安装
选择语言

进入安装信息摘要,等待系统加载安装源和验证安装选择(一般服务器选择最小化安装即可),点击安装位置进行设置,选择磁盘进行安装

设置root密码,等待系统安装重启即可。

毕竟centos是服务器系统,所以一般将该系统搭载到高性能机器上,然后通过个人pc进行管理。

我的网卡初始状态下是关闭的
通过#ip addr  #查看网卡状态
#ifup <interface>  #开启网卡

设置网卡开机自启
修改ifcfg-ens33中 ONBOOT属性为yes
ifcfg-ens33 一般在 /etc/sysconfig/network-scripts

service network restart       #重启网络服务
ifconfig的安装
[root@bogon ~]# ifconfig
-bash: ifconfig: 未找到命令
[root@bogon ~]# yum search ifconfig
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.nwsuaf.edu.cn
 * extras: mirrors.shu.edu.cn
 * updates: mirrors.cn99.com
=============================== 匹配:ifconfig ===============================
net-tools.x86_64 : Basic networking tools
[root@bogon ~]# yum install net-tools.x86_64
已加载插件:fastestmirror

ssh开启
yum list installed | grep openssh-server  #检查ssh是否安装
如果又没任何输出显示表示没有安装  openssh-server,通过输入  yum install openssh-server
找到了  /etc/ssh/  目录下的sshd服务配置文件 sshd_config
port 22
ListenAddress 0.0.0.0
ListenAddress ::
PermitRootLogin yes
PasswordAuthentication yes
保存退出
sudo service sshd start  #开启sshd
ps -e | grep sshd  #检查是否启动成功
客户端软件
下载WinSCP

https://winscp.net/eng/download.php
下载putty
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
WinSCP记住密码

 

在CentOS7下更改yum源与更新系统。
[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
[2] 进入yum源配置文件所在文件夹
[root@localhost yum.repos.d]# cd /etc/yum.repos.d/
[3] 下载163的yum源配置文件,放入/etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
[4] 运行yum makecache生成缓存
[root@localhost yum.repos.d]# yum makecache
[5] 更新系统
[root@localhost yum.repos.d]# yum -y update

 

附:轻量级kali虚拟机-->https://blog.csdn.net/qq_42196196/article/details/82941738

  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值