blog // ~ben

a blog about tildes and other things


July 22, 2018 — ~ben

finally got around to updating my dotfiles to use gnu stow. i adapted ~tomasino's makefile for use with the configs that i'm keeping with it.

now i just need to figure out why my ssh config doesn't copy/symlink my config to ~/.ssh when it already exists.

tags: linux, dotfiles, git

git remotes with ssh aliases

January 12, 2018 — ben

did you know that ~/.ssh/config aliases work for git remotes??


Host gh
User git
IdentityFile ~/.ssh/gh_key

you can now use gh:username/repo as the remote in place of, which is much shorter and easier to type many times!

git clone gh:benharri/learngit

there are many other use cases for the ssh_config file. for example, here is my config for the tilde machine for easy ssh connections.

Host tilde
User ben

then use ssh tilde to start a new ssh session. this also works with scp: try something like this scp file.txt tilde:workspace/. in place of scp file.txt

the ssh_config file is super useful. check man ssh_config for a full list of options!

tags: git, ssh