#6. lrzsz Windows和linux桥梁 rz和sz
#rz
windwos文件软件 上传到linux
把windows文件 直接拖到 xshell窗口中
#sz linux文件 下载到 windows
##了解:
[root@oldboyedu ~]# scp /etc/hosts 10.0.0.201:/tmp
The authenticity of host '10.0.0.201 (10.0.0.201)' can't be
established.
ECDSA key fingerprint is
SHA256:kfNxPsgsCsghfkz/e+Y3OA4ADMH1oINB59Yh2anfmEI.
ECDSA key fingerprint is
MD5:c2:5d:3e:88:2b:be:dd:eb:6f:4f:26:01:3c:7b:0b:ef.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.0.201' (ECDSA) to the list
of known hosts.
root@10.0.0.201's password:
hosts
100% 158 124.4KB/s 00:00
[root@oldboyedu ~]# ll /tmp/hosts
-rw-r--r--. 1 root root 158 Jan 8 14:39 /tmp/hosts
#7. top 升级版htop
Linux:swap 交换分区 : 当linux系统内存不足的时候 swap充当内存
windows: 虚拟内存
#7. top 升级版htop
Linux:swap 交换分区 : 当linux系统内存不足的时候 swap充当内存
windows: 虚拟内存
#8. nmap 网络扫描工具
[root@oldboyedu ~]# nmap www.baidu.com
Starting Nmap 6.40 ( http://nmap.org ) at 2020-01-08 15:15
CST
Nmap scan report for www.baidu.com (39.156.66.18)
Host is up (0.0016s latency).
Other addresses for www.baidu.com (not scanned): 39.156.66.14
Not shown: 996 filtered ports
PORT STATE SERVICE
25/tcp open smtp
80/tcp open http
110/tcp open pop3
443/tcp open https
Nmap done: 1 IP address (1 host up) scanned in 25.42 seconds
[root@oldboyedu ~]# nmap 10.0.0.201
[root@oldboyedu ~]# nmap 10.0.0.201
Starting Nmap 6.40 ( http://nmap.org ) at 2020-01-08 15:17
CST
Nmap scan report for 10.0.0.201
Host is up (0.0000080s latency). #10.0.0.201 在运行中
Not shown: 999 closed ports
PORT STATE SERVICE
22/tcp open ssh
Nmap done: 1 IP address (1 host up) scanned in 0.35 seconds
#port 端口
端口是用来区分不同服务.
远程连接服务的端口 sshd 默认的端口22
#检查指定端口 是否开启 linux 端口范围是 1-65535
[root@oldboyedu ~]# nmap -p22 www.baidu.com
Starting Nmap 6.40 ( http://nmap.org ) at 2020-01-08 15:23
CST
Nmap scan report for www.baidu.com (39.156.66.18)
Host is up (0.00036s latency).
Other addresses for www.baidu.com (not scanned): 39.156.66.14
PORT STATE SERVICE
22/tcp filtered ssh
Nmap done: 1 IP address (1 host up) scanned in 0.36 seconds
80/tcp open http #网站默认端口 80
443/tcp open https #https端口 加密
会所 服务项目 |
搓澡 |
按摩 |
拔罐 |
特殊服务 |
暗号/端口 |
23 |
25 |
22 |
8080 |
|
|
|
|
|
|
|
|
|
|
远程连接排错流程
远程连接排错三部曲 |
|
|
1.道路是否通畅 |
|
|
2.是否有劫财劫色 |
|
|
3.检查服务是否开启 |
|
|
详细操作过程
#1. 道路是否通畅
ping 服务器ip
本地Shell===cmd 相当于是在windows下面输入 执行命令
[e:\~]$ ping 10.0.0.201
正在 Ping 10.0.0.201 具有 32 字节的数据:
来自 10.0.0.201 的回复: 字节=32 时间<1ms TTL=64
来自 10.0.0.201 的回复: 字节=32 时间<1ms TTL=64
来自 10.0.0.201 的回复: 字节=32 时间<1ms TTL=64
来自 10.0.0.201 的回复: 字节=32 时间<1ms TTL=64
10.0.0.201 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 0ms,最长 = 0ms,平均 = 0ms
[e:\~]$ ping 10.0.0.222
正在 Ping 10.0.0.222 具有 32 字节的数据:
来自 10.0.0.1 的回复: 无法访问目标主机。
请求超时。
请求超时。
请求超时。
10.0.0.222 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 1,丢失 = 3 (75% 丢失),
#2. 是否有劫财劫色
### 不会拦截你
### 防火墙 selinux (NSA)
#3. 检查服务是否开启 检查 端口是否开启
telnet 检查端口是否开启
telnet ip 端口
telnet 10.0.0.201 22
[e:\~]$ telnet 10.0.0.201 22
Connecting to 10.0.0.201:22...
Connection established. #连接已经建立
To escape to local shell, press 'Ctrl+Alt+]'.
SSH-2.0-OpenSSH_7.4
[e:\~]$ telnet 10.0.0.201 22
Connecting to 10.0.0.201:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
SSH-2.0-OpenSSH_7.4
Protocol mismatch.
Connection closed by foreign host.
Disconnected from remote host(本地Shell===cmd) at 16:18:42.
Type `help' to learn how to use Xshell prompt.
常见导致道路不通 原因
nmtui #查看
cat /etc/sysconfig/network-scripts/ifcfg-ens33 #网卡配置文件
/etc/ linux系统配置文件的目录
/etc/sysconfig system configure 系统配置
/etc/sysconfig/network-scripts network 网络 scripts 脚本
(命令)
/etc/sysconfig/network-scripts/ifcfg-ens33 if interface
接口(网卡) cfg configure
ens33网卡名称
CentOS 7默认
eth0 网卡名称
CentOS 6
-
win -->vmware 编辑 --->虚拟网络编辑器
-
win vmware相关服务
- windows+r
- 输入services.msc
- windows下面服务管理页面
- 找到vmware开头的 已启动/正在运行 = 自动
服务名称 |
状态 |
是否开机自启动 |
VMware Authorization Service |
已启动/正在运行 |
自动 |
VMware NAT Service |
已启动/正在运行 |
自动 |
|
|
|
-
win:vmware网卡问题
- windows + e 打开我的电脑
- 输入“网络连接”
- 查看vmnet8状态