ping ssh telnet

转自https://www.cnblogs.com/geeklove01/p/8452567.html

Linux下ping,telnet,ssh命令的比较

ping工作在OSI模型的第三层,网络层。

主要用于测试到达目的主机的网络是否连接,不能检测某个端口是否开放。

ping使用ICMP协议,不使用某个特定端口。

也可以 ping 域名 ,这样可以直接看出这个域名对应的ip

ssh与telnet较为类似,都是远程登录工具。

ssh分为两部分:服务器端和客户端

服务器端是一个守护进程,用于处理客户端的连接请求,一般为sshd

客户端包括ssh程序以及scp,slogin,sftp等其他应用程序

他们之间最大的不同是ssh对传输加密,安全性高,telnet使用明文传输,较为不安全。

可用表格来表示主要差异(源自https://techdifferences.com/difference-between-telnet-and-ssh.html#Definition):

BASIS FOR COMPARISON TELNET SSH
Security Less secured Highly secured
Uses port number
 
23 22
Data format Telnet sends the data in plain text. Encrypted format is used to send data and also uses a secure channel.
Authentication No privileges are provided for users authentication. Uses public key encryption for authentication.
Suitability of network Private networks are recommended. Suitable for Public networks.
Vulnerabilities Vulnerable to security attacks. SSH has overcome many security issues of telnet.
Bandwidth Usage Low High

此外,telnet还能测试远程主机的某个端口是否开放,命令是:

telnet ip/domain port

猜你喜欢

转载自blog.csdn.net/dashan8608/article/details/85953169