I use a VM at home for work. My job consists of ssh'ing to several computers every day for various things... using the ssh user@server
notation is easy enough for this, but I've run into some issues with some scripts I'm working on. When my scripts run, it's attempting to ssh to boxes using my current user instead of the user associated with my LDAP account at work (and thus, not recognizing my private key). More specifically, my user at home is caleb
, whereas my user at work is ctote
.
Is there a way to modify my .bashrc
or .ssh
configs to force ssh to always use ctote
when trying to connect?