[root@VM_16_8_centos ~]# service sshd status Redirecting to /bin/systemctl status sshd.service ● sshd.service - OpenSSH server daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-03-21 01:04:16 CST; 21h ago Docs: man:sshd(8) man:sshd_config(5) Main PID: 858 (sshd) CGroup: /system.slice/sshd.service └─858 /usr/sbin/sshd -D
Mar 21 13:54:04 VM_16_8_centos sshd[7869]: Failed password for invalid user wordpressnet from 116.226.166.117 port 56826 ssh2 Mar 21 13:54:04 VM_16_8_centos sshd[7869]: error: Received disconnect from 116.226.166.117 port 56826:13: Unable to authenticate [preauth] Mar 21 13:54:04 VM_16_8_centos sshd[7869]: Disconnected from 116.226.166.117 port 56826 [preauth] Mar 21 14:49:16 VM_16_8_centos sshd[16636]: Accepted password for root from 110.86.32.42 port 54094 ssh2 Mar 21 18:39:13 VM_16_8_centos sshd[27448]: Invalid user yangchunfeng... from 116.226.166.117 port 64821 Mar 21 18:39:13 VM_16_8_centos sshd[27448]: input_userauth_request: invalid user yangchunfeng... [preauth] Mar 21 18:39:15 VM_16_8_centos sshd[27448]: error: Received disconnect from 116.226.166.117 port 64821:0: [preauth] Mar 21 18:39:35 VM_16_8_centos sshd[27463]: Accepted password for root from 116.226.166.117 port 64838 ssh2 Mar 21 19:07:38 VM_16_8_centos sshd[28950]: Accepted password for root from 116.226.166.117 port 51211 ssh2 Mar 21 20:12:33 VM_16_8_centos sshd[32129]: Accepted password for root from 116.226.166.117 port 60379 ssh2
其中有两处 SSH 标为红色,分别是 12 行和 18 行,看不懂,求大神解答,谢谢! 下面是 FTP 连接日志节选: 状态: 已从服务器断开 状态: 选择的端口通常是被其他协议使用。 状态: 正在连接 118.25.15.249:21... 响应: fzSftp started, protocol_version=8 命令: open "[email protected]" 21 错误: 20 秒后无活动,连接超时 错误: 无法连接到服务器 状态: 正在等待重试... 状态: 正在连接 118.25.15.249:21... 响应: fzSftp started, protocol_version=8 命令: open "[email protected]" 21 错误: 20 秒后无活动,连接超时 错误: 无法连接到服务器
小白就这个问题研究了很久一直无法解决,求大神解答! 其中,firewall 已经关闭
1
billlee 2018-03-21 23:43:27 +08:00
FTP 和 SFTP 完全是两个协议,用 FTP 肯定连不上
|
2
Hardrain 2018-03-22 07:51:21 +08:00
FTP/FTPS/FTPES 是一类协议
SFTP/SCP 是另一类 建议楼主先搞清楚再来提问 |
3
yongjing 2018-03-22 08:50:09 +08:00
sftp 相当于在用 ssh 登录
|