Home

Windows add SSH key to agent

How to run ssh-add on windows? - Stack Overflo

If you are using Git Bash, turn on ssh-agent: # start the ssh-agent in the backgroundssh-agent -s# Agent pid 59566. If you are using another terminal prompt Add key to the SSH Agent. We need to add the key to our ssh-agent so we don't have to type the key each time we use it. The agent will recognise that a new key Add your SSH private key to the ssh-agent and store your passphrase in the keychain. If you created your key with a different name, or if you are adding an To help with that, use ssh-agent to securely store the private keys within a Windows security context, associated with your Windows . To do that, start the

SSH keys on Windows 10 - Richard Ballar

  1. Verwenden Sie hierfür ssh-agent, um die privaten Schlüssel innerhalb eines sicheren Windows-Sicherheitskontexts zu speichern, der Ihrem Windows-Anmeldenamen
  2. Add your private key to the ssh-agent database: ssh-add C:\Users\youruser\.ssh\id_rsa Or as follows: ssh-add.exe $ENV:UserProfile\.ssh\id_rsa. Configuring
  3. Being new to setting up ssh keys I was testing things out and ended up generating 7 key pairs. After making a pair and testing I'd clear the win10 (client)machine
  4. 5) Add your key to SSH agent using command $ ssh-add ~/.ssh/id_work_gmail and then you should be able to connect to your github account or remote host using ssh.
  5. Adding your SSH key to the ssh-agent. Before adding a new SSH key to the ssh-agent, you should have checked for existing SSH keys and generated a
  6. 1 Answer1. Active Oldest Votes. 4. In the Apple version -K stores the password in your keychain, so you don't have to type it every time. In the non-Apple version -K

Remote Extension/Connection Type: SSH (v0.42.2) Steps to Reproduce: Start win10 ssh-agent service. Open remote ssh connection. Enter key password in vscode If you don't want to type your password each time you use the key, you'll need to add it to the ssh-agent. To start the agent, run the following: $ eval Adding an ssh-key to the ssh-agent is done via the ssh-add (1) command. As a parameter, ssh-add takes the filename of the ssh private-key. If the

Generating a new SSH key and adding it to the ssh-agent

  1. SSH Agent We already know how to use keys in order to connect through Secure Shell, but, there is an issue, it requires unlocking private key with a secret
  2. Auch unter Windows ist es möglich, den/die privaten SSH-Schlüssel komfortabel und einfach vom SSH-Agent verwalten zu lassen. Hierbei kommt das Tool Pageant zum
  3. Private Key: select Enter directly and press the Add button to insert your private key from /.ssh/jenkinsagentkey. Passphrase: fill your passphrase used to

For git starter and wanted to take advantage and utilize git, you might wondering how you can add your ssh keys permanently so you won't have to execute the To have SSH agent to automatically start with Windows, you can run (from elevated powershell prompt): Set-Service ssh-agent -StartupType Automatic After that ssh-add is a command for adding SSH private keys into the SSH authentication agent for implementing single sign-on with SSH. The agent process is

OpenSSH key management for Windows Microsoft Doc

Before adding a new SSH key to the ssh-agent, you should have checked for existing SSH keys and generated a new SSH key. Ensure ssh-agent is enabled: start the ssh-agent in the background. eval $ (ssh-agent -s) Agent pid 59566. Add your SSH key to the ssh-agent. If you used an existing SSH key rather than generating a new SSH key, you'll need. Found that the ssh-agent service status is stopped, start the service. PS D:\code> Set-Service -Name ssh-agent -StartupType Manual PS D:\code> Start-Service ssh-agent. Execute the ssh-add command to check whether it is successful That check in ssh-agent can be removed as sshd now runs as SYSTEM. We'll fix it. As a workaround to unblock you, could you create/install a dummy sshd service like this: sc.exe create sshd binPath=C:\Windows\System32\OpenSSH\ssh.exe. I had to run powershell as administrator to run this, but then I could ssh-add in any other powershell terminal

On the SSH command line: Add the -i flag and the path to your private key. For example, to invoke the private key host2_key, stored in the ~/.ssh/old_keys directory, when connecting to your account on a remote host (for example, username@host2.somewhere.edu), enter: ssh -i ~/.ssh/old_keys/host2_key username@host2.somewhere.ed Now, you can simply add your private key, enter your password once and it will be stored for the duration of your Windows session. If for security reasons you only want to keep the key in the agent for a certain time, you can indicate the lifetime with the -t parameter, e.g. one hour would be: ssh-add -t 1h. To verify which keys are currently. 2. Set up SSH Keys. Now that we got Git running, it is time to set up SSH keys for Git, so that we don't need to input password every time. It is more convenient but also safer. The concept is we create a public/private key pair; put the public key to the remote server, and keep the private key on your local machine. The server can.

OpenSSH-Schlüsselverwaltung für Windows Microsoft Doc

Configuring SSH Key-Based Authentication on Windows 10

Add public SSH key to your GitHub account. Go to Settings in your Github account to add the SSH public key. Under SSH keys tab, select New SSH key. Give a title and paste the key in the text area. Like the content ? Add private SSH key to the ssh-agent. Git bash tool comes with a ssh-agent. Create a new ~/.profile (or) ~/.bashrc file by running below command in git bash. $ vi ~/.profile Paste. SSH keys come in pairs made up of a private key and a public key. The private key should remain private and secure, hence, not to be shared with anyone. The public key, however, is meant to be shared, and so it should be placed on the remote server that you'd like to access. During the authentication process, the public key is used to encrypt a random challenge message, which is then sent.

Starting with the Windows 10 Fall Creators Update (1709), OpenSSH clients included as Windows add-ons. However, it is easy to misunderstand that it provided by unfamiliar usage that differs from Write For Us; Archive; About Us; Official Store; Configure SSH Key and Git Integration With Windows 10 Native Way. Jung-Hyun Nam. Follow. Mar 8, 2020 · 5 min read. Did you know that Windows 10. GPG + Git SSH Authentication and Signing on Windows 10 Introduction. This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows

Installed in c:\Windows\System32\OpenSSH in the 1803 Windows update. Client OperatingSystem Windows 10 Pro 1803. What is failing ssh-add can't add keys to the ssh-agent. Expected output The keys are accepted and listed when ssh-add -l is run. Actual output. ssh-add.ssh\secret.pem Could not add identity.ssh\secret.pem: communication with. To create a key on macOS, open a Terminal window, and run: ssh-keygen -t rsa -f <name of file> Make sure to add a passphrase for your key. After this finishes you'll have both the private key file, and the public key file (with a .pub extension). Let's get a Linux computer to try our new key with. Clone this repository, copy the .pub file over key.pub in the files subdirectory, and then. To begin adding your SSH keys, you should right click on its icon and then the following context menu will show up: Clicking on Add Key from the menu or View Keys to open up the Pageant Key List window. Here you can view, add, and remove keys: Tip: You can access the Pageant Key List window directly by double-clicking its icon in the system tray I'm on a Mac now, so I used the tutorial ssh-agent with zsh & keychain on Mac OS X to set it up, but I'm sure a Google search will have plenty of info for Windows. Update: A better solution on Mac is to add your key to the Mac OS Keychain: ssh-add -K ~/.ssh/id_rsa Simple as that. Run. ssh-agent bash ssh-add To get more details you can searc Putty is an open source SSH client for connecting via SSH from a Windows system. PuTTY includes support for the Pageant protocol, which is used by other applications in this solution. Download PuTTY and install it. Setting up Access to the YubiKey's OpenPGP Application. Pageant.exe, the key-agent from the PuTTY-package, does not support smart cards, which is why further software is required.

How To Connect To Your Droplet with SSH | DigitalOcean

windows - win 10 ssh-agent how to completely remove

Starting ssh-agent. On most Linux systems, ssh-agent is automatically configured and run at , and no additional actions are required to use it. However, an SSH key must still be created for the user.. If ssh-agent is not automatically started at , it can be started manually with the command. eval `ssh-agent` The ssh-agent command outputs commands to set certain environment variables. 為了協助您進行這項操作,請使用 ssh-agent 安全地將私密金鑰儲存在 Windows 安全性內容中,並與您的 Windows 登入產生關聯。 若要這麼做,請以系統管理員身分啟動 ssh-agent 服務,並使用 ssh-add 來儲存私密金鑰。 # By default the ssh-agent service is disabled. Allow it to be. 2、执行ssh-add时出现Could not open a connection to your authentication agent 其实应该将自定义名字的秘钥交给ssh-agent管理:GitHub help:Generating a new SSH key and adding it to the ssh-agent # start the ssh-agent in the background $ eval $(ssh-agent -s) Agent pid 59566 $ ssh-add ~/.ssh/id_rs Start Ssh Agent. ssh-agent is used to read keys for authentication. ssh-agent works as daemon. We can simply start it like below. $ eval `ssh-agent` Start Ssh Agent Add Ssh Key. We will add ssh keys with the ssh-add . We will provide the key we want to add. If the key is protected with encryption we need to provide the password

Running SSH Agent when starting Git Bash on Windows

Use ssh-agent for ssh/sftp/scp command authentication. Once you add the private key (or keys) to the ssh-agent, all you have to do is use ssh, sftp, scp, and all other ssh commands. For instance, I will execute the ssh command for my FreeBSD backup server: $ ssh user@server $ ssh user@hostname_or_ip $ scp file.doc vivek@server1.cyberciti.biz. This will need to be done with a PowerShell window run as Administrator. Add-WindowsCapability-Online -Name OpenSSH.Client~~~~0..1.. Next, switch to a regular (non-admin) PowerShell session and use the ssh-keygen command to generate a new key pair. When prompted, you can press enter to accept the defaults, or enter a custom path and name for the key files. You can also protect the private. # start the ssh-agent in the background $ eval $(ssh-agent -s) > Agent pid 59566; Agrega tu llave privada SSH al ssh-agent. Si creaste tu llave con un nombre distinto, o si estás agregando una llave existente que tiene un nombre distinto, reemplaza id_rsa en el comando con el nombre de tu archivo de llave privada. $ ssh-add ~/.ssh/id_rs

Video: Enter PIN for Authenticator for command ssh-add -

Add your SSH key to ssh-agent . ssh-agent is a program that starts when you log in and stores your private keys. For it to work properly, it needs to be running and have a copy of your private key. First, make sure that ssh-agent is running with: eval $(ssh-agent -s) # for Mac and Linux. or: eval `ssh-agent -s` ssh-agent -s # for Windows. Then, add your private key to ssh-agent with: ssh-add. SSH key is added to agent. Current Behavior. SSH key is not added to agent. Possible Solution. Uncheck require user confirmation when this key is used. Steps to Reproduce . Enable OpenSSH Client for Windows 10; Enable SSH Agent for Keepass database; Check use OpenSSH for Windows instead of Pageant; Add entry for key file 4.1 Add a private key file (i used an ecdsa key) 4.2 Enable key adding to. Step 1: Get the public key. Step 2: Create ssh directory in the user's home directory (as a sysadmin) Step 3: Set appropriate permission to the file. Public key authentication allows you to access a server via SSH without password. Here are two methods to copy the public ssh key to the server. I believe you understand the basic SSH concept

Click Add a feature at the top of the list of installed features. If you already have the SSH client installed, it will appear in the list here. Scroll down, click the OpenSSH Client (Beta) option, and click Install. Windows 10 also offers an OpenSSH server, which you can install if you want to run an SSH server on your PC Adding this tells Git that it must use PLink, which acts as a kind of gateway between the program that needs the SSH authentication, and the other program - in this case PuTTY's Pageant - that is providing the SSH Key. This is a required step, and is not the default when using Git on Windows as Git is really far more aligned to the Unix/Linux way of doing things. For SSH on Unix. SSH-Key unter Linux und macOS erstellen: So geht's Um einen SSH-Key unter Unix-Systemen wie Linux oder macOS zu erstellen, ist das sogenannte Terminal wichtig

github windows配置以及ssh生成 Permission denied (publickey)Using Git with SSH in Windows 10 | Damir&#39;s Corner

Identity not being added to ssh-agent service (windows

Right click on the subkey that has Authenticate as usage and select Export OpenSSH Key. A window should now be open with your ssh public key. Back it up as you'll use it often and start adding it on your servers in ~/.ssh/authorized_keys. You should now be able to connect to any of your servers by using the security card's ssh key. puTTy should work right out of the box Create New SSH Key. I'm creating a new SSH key within a linked folder, which means my SSH keys are backed up on the local machine in-case anything happens on this WSL instance even though in this case I can easily recreate & re-add to my account if need be.. Create the key with a password and we'll add it to agent in the next step so that we don't need to enter it everytime $ ssh-add Could not open a connection to your authentication agent. 然后试了一下连接github $ ssh -T git@github.com git@github.com: Permission denied (publickey). 在官网上看了一下,其实就是ssh的公钥没加进去导致的。 然后就有了下面的操作 把生成的ssh key添加到ssh agent中. 点击查看如何将key. Die Nutzung von SSH unter Windows 10 ist deutlich einfacher als bei früheren Versionen des Systems. Wir zeigen Ihnen, wie es funktioniert First, generate your SSH key. Although you can transfer key files between computers, I suggest generating a new one on each computer you use. cd ~\.ssh\ ssh-keygen. Then, associate the generated key with your Windows by adding it to the OpenSSH Authentication Agent service. ssh-add ~\.ssh\id_rsa. In my case, the service was disabled and.

Set up an SSH key Bitbucket Cloud Atlassian Suppor

The public key should be on the remote server. Remember the passphrase if necessary. OpenSSH config and authentication agent: Use a credentials helper application that manages your SSH keys, such as Pageant on Windows or ssh-agent on macOS and Linux. For example, see the following tutorial: Generating a new SSH key and adding it to the ssh-agent Windows环境下执行 ssh-add ~/.ssh/id_rsa 报 SSH keys(检查已存在的SSH key) Generating a new SSH key and adding it to the ssh-agent(生成一个新的SSH key并添加到ssh-agent) Adding a new SSH key to your GitHub account (为你的github账号添加SSH key) Testing your SSH connection ©️2020 CSDN 皮肤主题: 博客之星2020 设计师:CY__ 返回首页. 汪子. $ ssh-add ~/.ssh/<private_key_file> If you're still having problems, try removing all the SSH keys that you don't want to use: $ ssh-add -d ~/.ssh/<private_key_file> On Windows using Sourcetree . Double click the Pageant icon in your system tray to open the Pagent Key List dialog. If you don't see your SSH key, click Add Key to add it. To check. SSH-Agent and OpenSSH are tools in Windows that can be used to authenticate to remote Git repositories, such as GitLab, GitHub, Azure DevOps, etc. Once set up as a service that stores your various SSH keys, this can facilitate authentication without entering a password each time, removing the irritation of entering a password every time you wish to push/pull/etc. from a Git repository.

Manage SSH-keys with the SSH-agent - Experiencing Technolog

Step 3: Adding the SSH to the ssh-agent. Mac User: According to the GitHub documentation, if you are adding the SSH key to the agent, use the default macOS ssh-add command. I assume that you got the config file within your ssh folder, since this is not your first time setting up the SSH key. If you don't or you simply want to double-check. Automatically add SSH keys to SSH agent with GNOME and macOS. I am using passwordless via SSH on every box that I administer. Of course, my private SSH key is protected with a password that must be provided when accessing the key. Modern operating systems incorporate the usage of ssh-agent to link the user account to the SSH key(s), in order to unlock the SSH key as soon as the. If you'd like to use PowerShell to run an SSH agent, this article should get you started. Managing SSH Public Keys. With a service account selected in the sidebar, activate the Public Keys tab on the right to get an overview of this account's keys. Adding a Public Key. To add a public key to a service account, you need to click Create Public.

Add-SshKey - Instructs the agent to add the given key to itself. This will cause you to be prompted for the passphrase. The final section of the file is run automatically when you open a new Powershell window. It will check for an agent process and if none is found it will begin one and add your default key (normally ~/.ssh/id_rsa). Change this to pass in an alternative key path if necessary. 2) Generate your First SSH Key on the OnlyKey. Plug in and unlock your OnlyKey and then run: $ onlykey-agent identity@myhost. Where identity is your usual SSH user and myhost the host you want to connect to. 3) You now have the SSH public key for the user and the host you previously selected. i.e It stores your passphrase in macOS keychain and add SSH-key in SSH-agent, and persist until we restart the system. On restart all keys added in SSH-agents are reset and we need to re-add them. Re-adding SSH-keys is kind of an additional task every time you restart, to solve this we need something which automatically adds SSH-keys in SSH-agent and persist them during restarts without asking for.

8 Free SSH Clients For macOS And Windows - PuTTY Alternatives

Add the key to KeePassXC. After creating a database, we can then add a new entry for the ssh-key : The fields Password & Repeat are to be filled with the passphrase. Then, we switch to the SSH Agent category : The first two checkboxes enable the ssh-agent integration functionality, and the third the dialog window that appears each time the key. Gerrit - Add Your SSH Key, You can add SSH key to the ssh-agent on different platforms discussed further

SSH Agent Forwarding: How to use SSH properly and what is

To authenticate with an access key as a user, add the SSH key to the ssh-agent locally, just as you would when you're adding the key to your individual account. See Set up an SSH key for more details. Step 3. Add the public key to your repository. To add an access key to a repository: In a terminal or Command Prompt, log in to the server where the key is located. Copy the contents of the. Starting with the Windows 10 Fall Creators Update (1709), OpenSSH clients included as Windows add-ons. However, it is easy to misunderstand that it provided by unfamiliar usage that differs from Write For Us; Archive; About Us; Official Store; Configure SSH Key and Git Integration With Windows 10 Native Way. Jung-Hyun Nam. Follow. Mar 8, 2020 · 5 min read. Did you know that Windows 10. First, he may try to get your keys out of it. This is not as hard as it seems, you can find many tutorials online on how to do it. It boils down to dumping the memory of the ssh-agent, and looking for the keys in memory. Second, he may try to just use your agent. This literally requires no skill or tool whatsover Add Keys to ssh-agent. You can use the utility ssh-add to add keys to your local agent. Assuming your private key is stored in id_rsa, you can run: ssh-add ~/.ssh/id_rsa. You can also manually paste in the key rather than using id_rsa. Check that the key is added properly with: ssh-add -L. If it is, it should spit out your key. Add Keys on macOS. On macOS, you will instead need to run: ssh-add.

SSH Key-Agent - Rechenzentrum - uni-wuerzburg

Maybe a conflict between the GPG SSH agent and the OpenSSH SSH agent? Newer Windows 10 installs it's own OpenSSH Authentication Agent. Check with start -> services -> double click OpenSSH Authentication Agent -> Startup type should be Disabled. Remember that if you upgrade Windows 10, you have to repeat this disabling step. If this works, let me know and I can add to. Of course the way to do this is with SSH keys. I've done this before without any issues. When I was connecting, I was being prompted each time for the ssh passphrase of the SSH Key. Running ssh-add from the command line on Windows 10 came back with the erro Open Windows Powershell or Command Prompt. Type in ssh user@REMOTE-IP-ADDRESS-OR-FQDN. Enter user password. Everytime you want to start a new ssh session. Not anymore. Step 1: Create a public/private rsa key pair. Open Command Prompt/Powershell or as I like it, Powershell in Windows Terminal. Type in ssh-keygen -t rsa Resources. To create and use SSH keys on Windows, you need to download and install both PuTTY, the utility used to connect to remote servers through SSH, and PuTTYgen, a utility used to create SSH keys. On the PuTTY website, download the .msi file in the Package files section at the top of the page, under MSI ('Windows Installer') To help with that, use ssh- agent to securely store the private keys within a Windows security context, associated with your Windows . To do that, start the ssh-agent service as Administrator (we already did that when installing) and use ssh-add to store the private key: ssh-add ~\.ssh\id_rsa Add the key to another Windows serve

ssh-add. 3. With your SSH key now added to the agent, you should be able to to any remote machine that has your key authorized without needing to enter your passphrase. 4. To remove your private key from the SSH-agent cache, you will need to kill the ssh-agent we started earlier OpenSSH config and authentication agent: to use SSH keys that are managed by a credentials helper application (for example, Pageant on Windows or ssh-agent on macOS and Linux). See the Generating a new SSH key and adding it to the ssh-agent tutorial for details on working with SSH keys. Disable SSH connection to a database . In the Database tool window (View | Tool Windows | Database), click.

git - How to convert SSH keypairs generated using PuttyGen

Setup Ssh Agent - carsaddict

Enabling agent support in SecureCRT could hardly be easier: in the Global Options dialog, drill down to the SSH2 category and click the Add keys to agent box. This enables the internal agent, and, though it's not seen as a standalone process, it's a separate entity as far as the SSH protocol is concerned The ssh-agent that ships with macOS can store the passphrase for keys in the macOS Keychain, which makes it even easier to re-add keys to the agent after a reboot. Depending on your Keychain settings, you still may need to unlock the keychain after a reboot. To store key passphrases in the Keychain, run ssh-add -K [key filename] Any SSH keys in C:\User\[Username]\.ssh\id_rsa.pub are automatically loaded. You can add more by using ssh-add command. If the directory or keys don't exist, then you can use ssh-keygen to generate a new key, this will automatically create the relevant folders and files. And that's it. Now when you open a new PowerShell console, you should. This section will walk you through how to generate these keys and add them to a host. Tip: PuTTY for Windows is not a supported client, but you can convert your PuTTYGen keys. Quick start: Using SSH keys. To set up SSH key based authentication for your remote host. First we'll create a key pair and then copy the public key to the host. Create your local SSH key pair. Check to see if you. Configuring SSH keys. Without getting into SSH key management suffice it to say that I have a couple of keys that I use in different scenarios to connect/auth with various services. The main concern for this step is to configure SSH with an identity file that is attached to my Github profile. For ease of understanding we'll assume it is named id_rsa-github. I did a lot of searching to try and.

windows - Public key issue with command line in sourceTreeConfig

How to permanently add ssh keys in windows system

The ssh-agent is a process that is created to hold your ssh-keys. It helps make interacting with ssh servers less painful, by reducing the need for you to type in your passphrase on every interact with GitHub (for example). Usually, it is created. Generating an SSH key pair. In a terminal window run the command: ssh-keygen -f ~/.ssh/jenkins_agent_key. Provide a passphrase to use with the key. Confirm the output looks something like this: ubuntu@desktop:~$ ssh-keygen -f ~/.ssh/jenkins_agent_key Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same. Glossary: SSH Agent: Secure Shell (SSH) is a cryptographic protocol that securely transports data over an unsecured network (see RFC 4253).. The ssh-agent refers to a component of the OpenSSH software, which is used to cache (store temporarily) passphrases that are used to control access to ssh keys.Once a passphrase was cached, on subsequent use of the same key (within a given time), ssh. To generate an SSH Key, select Tools > Create or Import SSH Keys. This window should pop up: 2. Click Generate, and move the mouse randomly until a key is generated: 3. A public key and a private key should appear. Save them both by clicking Save public key (save as .pub filetype), and Save private key (save as .ppk filetype): 4. This is how the .pub and the .ppk files should appear in your.

Windows 10(April 2018 Update)に付属のssh-agentを使用してみました。 コマンド プロンプト(cmd)、WSL、Git Bashで使えることを確認しました。 (WSLはOSSの ssh-agent-wsl が必要). ssh-agent の有効化 GUIで行う場 SSH Windows 10 Error: WARNING: UNPROTECTED PRIVATE KEY FILE! How to fix We can't open this add-in from localhost when developing an Office Add-In; Azure Devops yaml error: did not find expected key while parsing a block mapping How to move emails from one Gmail to another Gmail accoun Open Sourcetree and go to 'Tools > Create or Import SSH Keys' (this will open a PuTTY Key Generator window), Set the number of bits in a generated key to 2048 and click on 'Generate'. Once generated go to git server panel and navigate to 'My account > Profile > SSH Keys' and click 'Add a public key' I've generally avoided SSH key pairs, and I've been able to do so for quite a while, until now.. I've used Tortoisegit and Github for Windows for most of my professional and personal projects. I really like the github for windows look, whilst tortoisegit is more of a familiar face (Tortoise SVN). Though none of them are really good, they both lack a good overview of the project that you're. I read and followed some online documentation on how to set up a ssh-agent so that I don't need to type in password every time I ssh to a remote machine.. However, with the help of ssh-agent, I still need to do ssh-add every time I restart the shell. The ssh-add then asks me to enter the passphrase to unlock the private key.. Enter passphrase for key '/home/xx/.ssh/id_rsa' You can use ssh-agent(1) and ssh-add(1) to type your passphrase only once for all uses of a specific key in a session. You can automatically load all your keys in the agent by adding the following lines to your ~/.xsession file: # if use-ssh-agent is specified in /etc/X11/Xsession.options # (this is the default) then you need only the second line # eval ssh-agent ssh-add <filename-of-ssh-key.