zoukankan      html  css  js  c++  java
  • ubuntu网络设置与secure无密码连接

    1、secureFX无法连接虚拟ubuntu
    Ubuntu已经安装 openssh-server,
    auto enp0s3
    iface enp0s3 inet static
    address 192.168.1.20
    netmask 255.255.255.0
    gateway 192.168.1.11
    dns-nameserver 233.5.5.5
    改为 address 192.168.1.20 #与宿主机器在同一局域网段
    然后重启网络
    sudo /etc/init.d/networking restart

    2、 ping www.baidu.com
    resolve成 www.a.shifeng.com是可以的,说明DUS解析没有问题
    但仍然host unreachable,网关设置有问题
    使用命令sudo vi /etc/network/interfaces
    将网关设置为
    auto enp0s3
    iface enp0s3 inet static
    address 192.168.1.20
    netmask 255.255.255.0
    gateway 192.168.1.1 #设置成了(宿)主机的ip
    dns-nameserver 233.5.5.5
    然后重启网络
    sudo /etc/init.d/networking restart

    3、ssh无密码登录仍然有问题
    如下图,uncheck掉“密码”

    4、secureFX出现中文乱码,改用UTF-8编码,如下图

  • 相关阅读:
    跨域
    redis安装
    iframe操作
    element-ui 合并相邻的相同行 span-method
    函数实现 a?.b?.c?.d
    git 使用流程 命令
    svg用作背景图
    js中的位运算符 ,按位操作符
    二十三种设计模式[23]
    二十三种设计模式[22]
  • 原文地址:https://www.cnblogs.com/gangzhuzi/p/8413049.html
Copyright © 2011-2022 走看看