最終更新:2018-05-25 (金) 22:14:06 (2154d)  

ssh-agent
Top / ssh-agent

RSADSA公開鍵認証で使われる認証鍵を保持するプログラム

Ubuntu/パッケージ

起動

  • eval `ssh-agent`

メモ

  • ssh-agentの出力は実際には一連のbashコマンドで、これらのコマンドが実行されると2つの環境変数SSH_AUTH_SOCKおよびSSH_AGENT_PIDが設定される。

自動起動

man

  •      -a bind_address
                 Bind the agent to the UNIX-domain socket bind_address.  The
                 default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>.
    
         -c      Generate C-shell commands on stdout.  This is the default if
                 SHELL looks like it's a csh style of shell.
    
         -d      Debug mode.  When this option is specified ssh-agent will not
                 fork.
    
         -k      Kill the current agent (given by the SSH_AGENT_PID environment
                 variable).
    
         -s      Generate Bourne shell commands on stdout.  This is the default if
                 SHELL does not look like it's a csh style of shell.
    
         -t life
                 Set a default value for the maximum lifetime of identities added
                 to the agent.  The lifetime may be specified in seconds or in a
                 time format specified in sshd_config(5).  A lifetime specified
                 for an identity with ssh-add(1) overrides this value.  Without
                 this option the default maximum lifetime is forever.

関連コマンド

ssh-add

  • adds RSA or DSA identities to the authentication agent
    ssh-add -l登録してある鍵の一覧を表示

関連

参考