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
相关文章
- ssh连接失败,排错经验(服务器可以ping通,ssh无法直接访问)
- 用Python来SSH连接到你的机器
- 如何设置 Linux 上 SSH 登录的 Email 提醒
- 如何在 CentOS / RHEL 上设置 SSH 免密码登录
- 运维--ssh免密配置脚本及同步文件脚本
- Windows上安装配置SSH教程(4)——WinSCP+OpenSSH 使用公钥自动登陆
- ssky-keygen + ssh-copy-id 无密码登陆远程LINUX主机
- 浅析 JSch - Java实现的SSH通讯包:jsch作用、4种认证方式、如何配置免密登录、ssh公钥检查机制及3种选项、如何实现sftp文件传输、maven依赖及具体使用示例代码
- GitLab配置SSH密钥
- 用SSH连接SSH连接nitrous.io
- 在SSH中增加JUNIT4单元测试
- #Cisco#SSH ssh时出现“diffie-hellman-group1-sha1”问题
- Web 框架之 SSH 框架的简单搭建的简单整理(基于Eclipse)
- Linux中ssh远程登录服务、SSH免密登录