03Linux之xshell工具

03Linux之xshell工具

3 xshell工具

3.1 xshell基础

3.1.1 什么是xshell

  • 是一个远程执行命令的客户端程序

  • 对应服务端程序openssh-sever(默认22)

    套接字客户端-------------------网络----------------套接字服务端

    xshell openssh-sever

3.1.2 为什么要用xshell

  • 远程管理

3.1.3 怎么用xshell

  • mac:iTerm2

    • 打开命令行终端
    • ssh root@服务器的IP地址 来连接
  • Windows:xshell

    • 缓冲区设置,控制内容显示的行数

    • 上下翻页

      shift+PgUp

      shift+PgDn

3.2 远程连接排错

3.2.1 测试网络是否畅通

  • ping服务器IP地址

  • 是否被防火墙阻止

    - firewalld
      systemctl stop firewalld
      systemctl disable firewalld
    - SELinux
      setenforce 0  # 临时关闭permissive(加载但不生效)
      setenforce 1  # 加载并运行enforcing
      永久关闭
    	1. vi /etc/sysconfig/selinux
    	2. enforcing改为disabled
    	3. 重启
    - getenforce查看状态
    
  • sshd服务是否开启

    systemctl restart sshd # 重启服务端程序

3.2.2 其他

  • IP地址是否正确(ifconfig查看网络)

  • 网卡配置是否正确(route -n查看网关、cat /etc/resolv.conf查看DNS地址)

  • 关闭centos7 NetworkManager

    systemctl stop NetworkManager

    systemctl disable NetworkManager

  • 虚拟网络编辑器

  • VMware服务是否正常启动

原文地址:https://www.cnblogs.com/caojiaxin/p/14004453.html