SFTP 传输中的 ASCII 模式 [英] ASCII mode in SFTP transfers

查看:103
本文介绍了SFTP 传输中的 ASCII 模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SFTP 传输中的 ASCII 模式是什么意思.是否会以文本格式传输文件.

What does the ASCII mode in SFTP transfer means. Does it going to transfer the file in text format.

推荐答案

引用有关文本(又名 ASCII)访问远程文件的 SFTP 规范:

Quoting SFTP specification regarding text (aka ASCII) access to remote files:

5.3.确定服务器换行约定

为了正确处理跨平台的文本文件兼容方式,换行序列必须在客户端之间转换和服务器约定.

In order to correctly process text files in a cross platform compatible way, newline sequences must be converted between client and server conventions.

SSH_FXF_TEXT_MODE 文件打开标志(第 8.1.1 节)使其可以请求服务器将文件转换为规范"线格式.此格式使用 CRLF 作为行分隔符.

The SSH_FXF_TEXT_MODE file open flag (Section 8.1.1) makes it possible to request that the server translate a file to a 'canonical' wire format. This format uses CRLF as the line separator.

使用其他约定的系统的服务器必须转换为和来自规范形式.

Servers for systems using other conventions MUST translate to and from the canonical form.

注意文本模式"仅从 SFTP 版本 4 起支持.许多现有的 SFTP 实现(包括最广泛的一种,OpenSSH)仅支持 SFTP 版本 3.所以它们根本不支持文本/ASCII 模式.

Note that the "text mode" is supported since SFTP version 4 only. Many existing SFTP implementations (including the most widespread one, the OpenSSH) support SFTP version 3 only. So they do not support text/ASCII mode at all.

这篇关于SFTP 传输中的 ASCII 模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆