zoukankan      html  css  js  c++  java
  • centOs6.5配置启动ssh

    root用户则执行susu - su rootsu - root切换为root用户

    2、查看SSH是否安装(检查是否装了SSH包)

    输入命令:rpm -qa | grep ssh

     

    注:若没安装SSH则可输入:yum install openssh-server安装。

    3、查看SSH服务是否正在运行。
    输入命令:/etc/init.d/sshd status

     

    4、centos 6.5系统中SSH服务处于非运行状态

    使用(service sshd start)命令开启SSH服务

    停止SSH服务命令(service sshd stop

    重启SSH服务命令(service sshd restart

    5、netstat -antp | grep sshd 查看是否启动22端口

     

    6、检查SSHD是否在本运行级别下设置为开机启动
    输入命令:chkconfig --list sshd
    如图所示centos 6.5系统中SSH服在本运行级别下已经设置为开机启动,如果没设置启动就使用如下命令[chkconfig --level 2345 sshd on]设置下即可

     

    7、设置SSH服务为开机启动。
    输入命令:chkconfig sshd on 即可。
    注:若是chkconfig sshd off则禁止SSH开机启动

    8、使用xshell链接虚拟机

  • 相关阅读:
    Git 在Idea下的操作
    负载均衡算法-java实现
    MySQL 上亿大表优化实践 转
    盘点 10 个代码重构的小技巧
    wireshark抓包工具详细说明及操作使用
    限流
    Semaphore
    CyclicBarrier
    CountDownLatch和枚举配合使用
    ReentrantReadWriteLock读写锁
  • 原文地址:https://www.cnblogs.com/tianphone/p/10763385.html
Copyright © 2011-2022 走看看