From 0b79c12a7621781fa1aa4de945bfd473b7a0b751 Mon Sep 17 00:00:00 2001 From: theadam Date: Sun, 12 Jan 2025 16:45:31 +0100 Subject: [PATCH] update --- ssh-agent-in-wsl.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ssh-agent-in-wsl.md b/ssh-agent-in-wsl.md index 8f585fd..190941d 100755 --- a/ssh-agent-in-wsl.md +++ b/ssh-agent-in-wsl.md @@ -24,6 +24,16 @@ fi After every start of WSL, add the key to the SSH agent and unlock it with the password. For example when starting the day, after WSL start `ssh-add ~/.ssh/id_ed25519` +## Forward agent + +Usualy a good idea to forward the agent. With this if using a jump host, you do not need to reenter the password if connect from a host to another host. Add this or create the `~/.ssh/config` file +``` +Host * + ServerAliveInterval 15 + ForwardAgent yes +``` +> ServerAlive useful, if the underlying connection closes the TCP sockets, E.G. Cisco EPC3925 or NATted cellular networks. This option sends dummy packet every 15 secs to keep the connection up. + ## todo - Add the ability to ask the key password on login - Store the SSH key between restarts (probably requires external packages) \ No newline at end of file