小编Fla*_*nix的帖子

将 Amazon .pem 密钥转换为 Putty .ppk 密钥 Linux

我已经.pem从 AWS生成并下载了一个私钥。但是,要使用 Putty 连接到虚拟机,我必须拥有该密钥的.ppk格式。转换过程在这里大约有 20 行详细说明:

我正在使用 Linux Mint(一个 Ubuntu 发行版),我知道我可以在终端中使用 puttygen。但是,我不知道如何使用此工具,也不知道如何配置所需的参数。当我输入 puttygen --help 我得到

PuTTYgen unidentified build, Aug  7 2013 12:24:58
Usage: puttygen ( keyfile | -t type [ -b bits ] )
                [ -C comment ] [ -P ] [ -q ]
                [ -o output-keyfile ] [ -O type | -l | -L | -p ]
  -t    specify key type when generating (rsa, dsa, rsa1)
  -b    specify number of bits when generating key …
Run Code Online (Sandbox Code Playgroud)

security ssh putty linux-mint amazon-ec2

50
推荐指数
2
解决办法
20万
查看次数

使用 /usr/bin/time shell 命令提高 %e 精度

当我在 shell 中运行 time 命令时,time ./myapp我得到如下输出:

real    0m0.668s
user    0m0.112s
sys     0m0.028s
Run Code Online (Sandbox Code Playgroud)

但是,当我运行命令时,\time -f %e ./myapp我失去了精度,我得到:

2.01s
Run Code Online (Sandbox Code Playgroud)

如果我使用该%E命令,我也会以同样的方式失去精度。如何将其更改为再次具有更高的精度,但仍然只输出秒数?

我的研究基于这个Linux / Unix Command: time and on this question

shell scripting time

19
推荐指数
1
解决办法
2万
查看次数

标签 统计

amazon-ec2 ×1

linux-mint ×1

putty ×1

scripting ×1

security ×1

shell ×1

ssh ×1

time ×1