CentOS7 1810 虚拟机网络-网卡1 桥接网卡,网卡2 Host-Only 设置SSH,putty可登录 sudo dhclientyum install -y openssl openssh-server# 修改配置文件vi /etc/ssh/sshd_config# 关闭注释:PermitRootLogin,PubkeyAuthent" />
  • 35648

    文章

  • 23

    评论

  • 20

    友链

  • 最近新加了很多技术文章,大家多来逛逛吧~~~~
  • 喜欢这个网站的朋友可以加一下QQ群,我们一起交流技术。

VMWare使用小记

欢迎来到阿八个人博客网站。本 阿八个人博客 网站提供最新的站长新闻,各种互联网资讯。 喜欢本站的朋友可以收藏本站,或者加QQ:我们大家一起来交流技术! URL链接:https://www.abboke.com/jsh/2019/0812/105169.html 1190000020038889nd">

CentOS7 1810
虚拟机网络->网卡1 桥接网卡,网卡2 Host-Only
设置SSH,putty可登录

sudo dhclient
yum install -y openssl openssh-server

# 修改配置文件
vi /etc/ssh/sshd_config
# 关闭注释:PermitRootLogin,PubkeyAuthentication
# 在文件最后添加两行
# Port 22
# Protocol 2

# Protocol 2(第二代ssh)
# RSAAuthentication(第二代ssh弃用)

#启动ssh,开机启动ssh
systemctl start sshd.service
systemctl enable sshd.service

#取得虚拟机ip,此ip可供putty和winscp登录
ip addr

设置FTP,winscp通过22端口可以访问

yum install iptables-services
systemctl mask firewalld.service
systemctl stop firewalld.service

service vsftpd start
service vsftpd restart
chkconfig vsftpd on

#打开访问端口,例如3306(mysql)
vi /etc/sysconfig/iptables

systemctl enable iptables.service
systemctl enable ip6tables.service

相关文章

暂住......别动,不想说点什么吗?
  • 全部评论(0
    还没有评论,快来抢沙发吧!