【笔记】Linux网络配置及远程连接

xiaoxiao2021-02-28  114

ifconfig命令用于查看网络接口信息 查看所有活动网络接口的信息 $ /sbin/ifconfig 查看所有网络接口(包括非活动网络接口)的信息 $ /sbin/ifconfig -a 查看指定网络接口信息 $ /sbin/ifconfig eth0 进入/etc/network/目录 用vi编辑器打开interfaces文件 auto eth0 iface eth0 inet static 采取静态地址 address 192.168.0.111 静态IP地址 netmask 255.255.255.0 子网掩码 gateway 192.168.0.1 网关 重启: /etc/init.d/networking restart 服务器SSHD服务: apt-get install ssh 修改配置文件: vi /etc/ssh/sshd_config PasswordAuthentication yes 启动: /etc/init.d/sshd start SecureCRT软件远程连接设置: 右键Sessions,properties --> SSH2 填写Hostname,Port,Username Putty远程连接: 填写主机地址:192.168.1.111;填写主机端口22(默认端口),可以通过修改配置文件sshd_config更改端口号
转载请注明原文地址: https://www.6miu.com/read-57655.html

最新回复(0)