Related Posts
ubuntu packages for a kick ass web server
Copy and paste the following list on a file, say “packages.txt”. To install all just do: sudo apt-get install $(cat packages.txt) accountsservice acpid adduser ant ant-optional apache2-utils apparmor apport apport-symptoms apt apt-transport-https apt-utils apt-xapian-index aptitude at base-files base-passwd bash bash-completion bc bind9-host bsdmainutils bsdutils busybox-initramfs busybox-static byobu bzip2 ca-certificates ca-certificates-java cloud-init cloud-initramfs-growroot cloud-initramfs-rescuevol cloud-utils command-not-found […]
startKeychain – bash utility to start ssh-agent
For my (and your) future reference, here’s a function to put on your .bashrc or .bash_profile, you can invoke it later at any time to start/re-start your ssh-agent. [bash] function startKeychain { killall ssh-agent rm ~/.keychain/* keychain id_rsa HOSTNAME=`hostname` source ~/.keychain/${HOSTNAME}-sh } [/bash] Then at any time, the “command” startKeychain will be available on your […]
ssh-add -l -> Cannot connect to your agent.
keychain not working for ya… you run ssh-agent but ssh-add won’t add the keys. This is probably because your SSH_AGENT_PID and SSH_AUTH_SOCK variables are incorrect… so I recommend you put something like this on your .bashrc to initialize your ssh-agent correctly: export SSH_AGENT_PID= export SSH_AUTH_SOCK= #make sure no old agents are running killall ssh-agent #grab […]