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


RSS Icon Subscribe to comments

You need to login to post a comment.