This commit is contained in:
陈浩南 2024-05-01 12:17:41 +08:00
parent e3f708fcba
commit e7bbe85438
7 changed files with 54 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text

BIN
doc/pageant1.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
doc/putty1.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
doc/putty2.png (Stored with Git LFS) Normal file

Binary file not shown.

38
doc/setup.md Normal file
View File

@ -0,0 +1,38 @@
为了识别登陆 jykang@hpc.xmu.edu.cn 时使用的密钥,并分密钥统计使用情况,需要启用 SSH agent forwarding。接下来的内容将带领您在 Windows 系统上配置 SSH agent forwarding。
接下来的内容分为三个部分:
1. 启动 Pageant 并添加密钥。**这一步骤每次登陆前都需要执行。**
2. 配置 PuTTY使 PuTTY 在每次登陆时不直接使用密钥,而是利用 Pageant 完成认证。这一步骤只需要执行一次。
3. 配置 WinSCP使 WinSCP 在每次登陆时不直接使用密钥,而是利用 Pageant 完成认证。这一步骤只需要执行一次。
**Pageant**:
分为以下几个步骤:
1. 找到 Pageant 程序。Pageant 会随着 PuTTY 一起安装,一般来说您可以直接在开始菜单中搜索 “pageant” 找到它,也可以在 PuTTY 的安装目录中找到它。
2. 启动 Pageant。启动后可能没有任何反应也可能有一个黑框闪过这是正常的。只要右下角的系统托盘中出现了 pageant 的图标就可以了。
![](pageant1.png)
3. 双击 Pageant 图标,打开 Pageant 窗口。选择 “Add Key”然后选择您的密钥文件。
4. 在使用服务器期间保持 Pageant 打开(可以关闭 Pageant 的窗口,但不要在系统托盘中右键退出)。
5. 使用完毕后,在系统托盘中右键退出 Pageant。
**PuTTY**:
1. 在 Connection -> SSH -> Auth勾选 “Allow agent forwarding“ 并保存。
![Alt text](putty1.png)
2. 在 Connection -> SSH -> Auth -> Credentials清空 “Private key file for authentication”。
![Alt text](putty2.png)
**WinSCP**:
1. 在 SSH -> Authentication勾选 “使用 Pageant 进行认证”,勾选 “允许代理转发”,清空 “密钥文件”,然后保存。
![Alt text](winscp1.png)
2. (选做)如果您需要通过 WinSCP 打开 PuTTY 的话,需要在 WinSCP 主界面 -> 工具 -> 选项 -> 集成 -> 应用程序路径中填入 PuTTY 的路径。
![Alt text](winscp2.png)

BIN
doc/winscp1.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
doc/winscp2.png (Stored with Git LFS) Normal file

Binary file not shown.