逐步介绍如何使用 ssh-keygen 创建和配置 SSH 密钥,以便在 data cloud 中使用 SFTP 设置和数据流
在 Data Cloud 中创建 SSH 密钥并配置 SFTP 设置并创建 SFTP 数据流
使用以下步骤创建一个新的 SSH 密钥对。
要使用命令行创建 SSH 密钥对
1.创建一个密钥:
ssh-keygen -m PEM -t rsa -b 4096
2.输入一个文件名:
- 示例:originalfilename
3.将密钥更改为 RFC4716 (SSH2) 密钥格式:
ssh-keygen -e -f originalfilename.pub > newfilename
要使用 Mac 终端创建 SSH 密钥对
1.创建一个密钥:
ssh-keygen -m PEM -t rsa -b 4096
2.输入一个文件名:
- 示例:originalfilename
3.将密钥更改为 RFC4716 (SSH2) 密钥格式:
ssh-keygen -e -f originalfilename.pub > newfilename
要使用 PuTTYgen 创建 SSH 密钥
1.打开 PuTTY 密钥生成器。
2.在“密钥”菜单下选择“SSH-2 RSA”。
3.在主屏幕(右下角)中,输入已生成密钥的位数:`2048`。
4.单击“生成”。
5.生成密钥后,单击顶部菜单栏中的“转换”,选择“导出 OpenSSH 密钥”。
6.将其另存为 `.ppk` 格式。这将是一个私钥。
7.然后单击 `.pub` 格式的 **保存公钥**,进而保存公钥。
要验证 SSH 公钥并将其更新为所需格式
1.通过文本编辑器打开 `newfilename.pub`。
2.要成功上载,它应该反映以下格式,并且应该是一个 `.txt` 文件:
-----BEGIN OPENSSH PRIVATE KEY-----
KEYSTRING
-----END OPENSSH PRIVATE KEY-----
3.删除不属于秘钥的任何附加的前导或结尾文本。如图所示,添加页眉和页脚。
要在 Data Cloud 内上载密钥
1.找到设置 > Data Cloud 设置。
2.单击其他连接器 > 新建 > 安全文件传输 (SFTP)。
3.单击“下一步”。
4.填写所有必需的详细信息。
5.选择“SSH 私钥”。
6.单击“测试连接”。
7.单击“保存”。
注意:目前不支持基于 OpenSSH 的 SshEd25519PrivateKeyJCE 格式的密钥。
使用 SFTP 文件创建数据流
1.找到数据流 > 新建 > SFTP > 下一步。
2.选择连接的名称 > 从目录导入 > 文件名。
3.选择类别 > 下一步。
4.选择刷新模式 > 计划 > 选择复选框。
5.单击“部署”。
002722669

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.