Posts

Showing posts with the label ssh

.ssh permissions

I've had the same ssh keys for years. I just rsync them to a new system when I get one. I always seem to end up with mucked up permissions moving them around and never seem to remember how the permissions were set. Here's my reminder. ~/.ssh 700 ~/.ssh/authorized_keys 600 ~/.ssh/config 644 ~/.ssh/id_dsa 600 ~/.ssh/id_dsa.pub 644 ~/.ssh/known_hosts 644

ssh-add could not open a connection

Ever try to run ssh-add and get this message? Could not open a connection to your authentication agent Run this command exec ssh-agent /bin/bash or just add that to your .bash_profile so it runs on login.

SSH from OS X to Juniper firewall

Had to redo my Mac recently and started having problems with ssh to a Juniper firewall. I could ssh into the firewall but would be dropped 30 seconds later. Took me a while to get the search terms right but eventually found this post explaining the situation. The problem was I had a custom ssh config file in ~/.ssh/config and had ServerAliveInterval set to 30(ServerAliveInterval=30). Had to add an extra rule for the firewall and set that value to 0.