SSH: ssh-agent ssh-add
Start ssh-agent
-a bind_address
Bind the agent to the UNIX-domain socket bind_address
-k Kill the current agent (given by the SSH_AGENT_PID environment variable)
-t life
Specifies a maximum number of seconds that identities are kept in the agent. The value is in seconds, but can be suffixed by m
for minutes, h
for hours, d
for days, and w
for weeks. Without this option, the agent keeps the keys in its memory as long as it runs. This can be overridden when running the ssh-add command.
Adding SSH keys to the Agent
By default, the agent uses SSH keys stored in the .ssh directory under the user's home directory. The ssh-add command is used for adding identities to the agent. In the simplest form, just run if without argument to add the default files ~/.ssh/id_rsa ~/.ssh/id_dsa ~/.ssh/id_ecdsa ~/.ssh/id_ed25519 ~/.ssh/identity. Otherwise, give it the name of the private key file to add as an agrument.
ecdsa ( Elliptic Curve Digital Signature Algorithm) which uses keys derived from elliptic curve cryptography (ECC)
Verify
ssh -v -p 22 -l git -T github.com -i ~/.ssh/infringe
SSH Agent Forwarding
ssh command line
ssh_config
sshd_config
ssh -ATX -l git github.com
-o IdentitiesOnly=yes, ssh will only use that key and won't fall back to any other keys if it was rejected. ( Note that fallback to other machanisms, such as GSSAPI or password, is controlled by a different option)
-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2022-03-24 CSS: 层叠 继承 优先级
2021-03-24 ext4文件系统