728x90 AdSpace

Tuesday, 22 August 2017

ssh-agent - Linux Command


ssh-agent [options] [command [arguments] ]

Hold private keys used for public key authentication. ssh-agent is usually executed at the beginning of an X or login session; then all other windows or programs given as command are run as clients of ssh-agent. When a command is specified, the command and any arguments are executed. The agent dies when the command completes. Use ssh-add to add keys (identities) to the agent. Operations that require a private key are performed by the agent, which returns the results to the requestor. When using ssh-agent, you must specify a shell—for example:

$ ssh-agent /bin/bash

You can then use ssh-add to add identities.


-a bind_addr
Bind the agent to the socket bind_addr (default is /tmp/ssh-nnnnnnnn/agent, where nnnnnnnn is a generated number).

Write csh commands to standard output. This is the default if the environment variable SHELL looks like a csh-type shell.

Debug mode.

Kill the current agent.

Write Bourne shell commands to standard output. This is the default if the environment variable SHELL does not look like a csh-type command.

-t life
Set a default value for maximum identity lifetime for added identities. May be specified in seconds or in a format specified in sshd(8). This value can be overridden by a lifetime specified for an identity with ssh-add. The default maximum lifetime is forever.
Annamalai Thangaraj

Annamalai is working as Technical Lead in Leading Telecom company with 5+ years experience in Identity and Access Management , Telecom and Networks, BigData, Java, Spring, Struts, Hibernate, AngularJS, and Enterprise Web Application Development.

Website: Java Tutorials Corner

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments


Post a Comment

Item Reviewed: ssh-agent - Linux Command Rating: 5 Reviewed By: Annamalai Thangaraj