Your browser does not allow storing cookies. We recommend enabling them.

SSH Tectia 
PreviousNextUp[Contents] [Index]

    About This Document >>
    Installing SSH Tectia Server >>
    Getting Started >>
        Location of Installed Files >>
        Starting and Stopping the Server >>
        Operation of the Server >>
        SSH Tectia Server (T) >>
        SSH Tectia Server (A) >>
        SSH Tectia Client >>
            Using the Client (ssh2)
            Using Secure Copy (scp2)
            Using Secure File Transfer (sftp2)
            Using Authentication Agent (ssh-agent2, ssh-add2)
        Examples of Use
    Configuration >>
    Authentication >>
    Application Tunneling >>
    Troubleshooting >>
    Man Pages
    Advanced Options >>
    Log Messages >>

Using Authentication Agent (ssh-agent2, ssh-add2)

ssh-agent2 is a program that stores private keys for authentication. With the ssh-add2 command, you can add identities to the authentication agent. When you use the authentication agent, it will automatically be used for public-key authentication. This way, you have to type the passphrase of your private key only once to the agent. Authentication data does not have to be stored on any other machine than the local machine, and authentication passphrases or private keys never go over the network.

Start ssh-agent2 with the command

$ eval `ssh-agent2`

or with the command

$ exec ssh-agent $SHELL

After that, you can add identities as follows:

$ ssh-add2 id_dsa_1024_a
Adding identity: id_dsa_1024_a
Need passphrase for id_dsa_1024_a (1024-bit dsa,
      user@localhost, Tue Aug 01 2000 19:41:42).
Enter passphrase: 

When you connect to a remote host and use public-key authentication, you will be logged in immediately.

If you want the connection to the agent to be forwarded over ssh remote logins, you should have the following line in your /etc/ssh2/sshd2_config file:

AllowAgentForwarding     yes

The ssh-agent2 and ssh-add2 command-line options are documented in detail on the ssh-agent2 and ssh-add2 man pages.

PreviousNextUp[Contents] [Index]

[ Contact Information | Support | Feedback | SSH Home Page | SSH Products ]

Copyright © 2010 SSH Communications Security Corp.
This software is protected by international copyright laws. All rights reserved.
Copyright Notice


Highlights from the SSH.COM blog:

  • Cryptomining with the SSH protocol: what big enterprises need to know about it

    Cryptomining malware is primarily thought of as targeting desktops and laptops and is used to hijack system resources to mine cryptocurrency.
    Read more
  • SLAM the door shut on traditional privileged access management

    Did you know that something as trivial-sounding as granting access for your developers or third parties to a product development environment can throw a gorilla-sized monkey wrench into your operations and productivity?
    Read more
  • We broke the IT security perimeter

    Everyone understands the concept of a security perimeter. You only gain access if you are identified and authorized to do so.
    Read more