Create bash alias for SSH connection


/ Published in: Bash
Save to your folder(s)

Create a bash alias for a SSH command, e.g. sshToWork


Copy this code and paste it in your HTML
  1. echo "alias sshToWork=\"ssh -i pathToKey.pem user@host\"" >> $HOME/.bash_profile

Report this snippet


Comments


You need to login to view comments.