CD ~
vi .bash_profile
add alias in the file
alias ctaws=’ssh -i /Users/Alvis/.ssh/awsvuewebsite.pem ec2-user@ec2-52-194-128-68.ap-northeast-1.compute.amazonaws.com’
alias abc=”ssh root@123.42.21.123″
(abc as the alias , can be used to instead of command line )
:wq!
source ~/.bash_profile //* reload to update the setting of .bash_profile