Posts for: #Ssh

generating ssh keys in 2025

I’m setting up a new system, and I always create a new key when I bulid a new desktop… Having not done it in a few years, I wanted to see what the recomended ssh key looks like these days.

Read more →

letting screen apps use the ssh-agent

I have been wondering for a while how to do this… How to pass the ssh-agent variables to screen clients. After doing a google search on it I found a couple of solutions:

  • grabssh/fixssh - two scripts that save the ssh agent environment variables and restore them;
  • screen_agent - this just executes an ssh-agent that is used by the screen session;
  • fixx - ok, this actually fixes X forwarding not ssh-agent and is a variation on the first;

Then I came across Alexander Neumann’s blog entry which is the perfect solution. He simply redefines the SSH_AUTH_SOCK variable and makes it point to a symlink that he creates when he logs in. This means that this method works when you’re sshing into a machine running screen. I will just have to overwrite this symlink when screen is being launched.

Read more →