#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.