enter passphrase for key code example

Example 1: ssh agent remember passphrase

$ ssh-add .ssh/id_rsa 
Enter passphrase for .ssh/id_rsa: 
Identity added: .ssh/id_rsa (.ssh/id_rsa)

Example 2: ssh agent remember passphrase

$ ssh-add -l

Example 3: ssh agent remember passphrase

$ ssh-agent 
SSH_AUTH_SOCK=/tmp/ssh-hZQhwQlxahPX/agent.1833; export SSH_AUTH_SOCK; 
SSH_AGENT_PID=1834; export SSH_AGENT_PID; 
echo Agent pid 496;

Example 4: ssh agent remember passphrase

$ SSH_AUTH_SOCK=/tmp/ssh-hZQhwQlxahPX/agent.1833; export SSH_AUTH_SOCK; 
$ SSH_AGENT_PID=1834; export SSH_AGENT_PID;

Example 5: enter passphrase is asking for password

ssh-agent
cat ~/.ssh/id_<name> # To know your user name
ssh-add ~/.ssh/id_<name>