Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cache for agent using the ssh-add command of linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the use of linux's ssh-add command agent cache, I hope you will learn a lot after reading this article, let's discuss it!

The ssh-add command adds the private key to the ssh-agent cache. The command is located at / usr/bin/ssh-add.

Syntax format: ssh-add [parameters]

Common parameters:

-D remove all keys in ssh-agent-d remove keys from ssh-agent-l display keys in ssh-agent-L display public keys in ssh-agent-X unlock ssh-agent-x lock ssh-agent

Reference example

Add the private key to the ssh-agent cache:

[root@linuxcool] # ssh-add ~ / .ssh/id_dsa

Remove the key from ssh-agent:

[root@linuxcool] # ssh-add-d ~ / .ssh/id_xxx.pub

View the keys in ssh-agent:

[root@linuxcool] # ssh-add-l after reading this article, I believe you have some understanding of the cache of agent using the ssh-add command of linux. If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report