我同时设置了两个新的 CentOS 7 机器,所以配置应该是相同的,只是 IP 地址和主机名不同。
我安装了 VSFTPD 并配置了被动端口。一个盒子连接正常,没有问题,但是第二个盒子不断向我抛出这个错误:
GnuTLS error -15: An unexpected TLS packet was received.
Run Code Online (Sandbox Code Playgroud)
这是调试 FileZilla 跟踪:
Status: Connecting to 192.168.20.68:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 (vsFTPd 3.0.2)
Trace: CFtpControlSocket::SendNextCommand()
Command: AUTH TLS
Trace: CFtpControlSocket::OnReceive()
Response: 234 Proceed with negotiation.
Status: Initializing TLS...
Trace: CTlsSocket::Handshake()
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnSend()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Trace: TLS Handshake successful
Trace: Protocol: TLS1.2, Key exchange: …Run Code Online (Sandbox Code Playgroud) SFTP 是否有任何限制阻止用户在文件系统之间进行复制?我有一个带 SFTP 的 SLES,用户无法在文件系统之间复制/移动文件,即使目标是chmod 777-ed 并且用户是 root 用户——Filezilla 只是说“失败”。在目标文件系统上创建目录可以正常工作,在文件系统中复制/移动也是如此,如果用户 SSHes 在他们可以复制到目标文件系统没问题。
没有 SELinux、AppArmor、grsecurity 等。可能是什么问题?
更新:服务器是 SLES 10.4