.bashrc alias & ssh
Edit .bashrc located in your $HOME directory, if it does not exist create it using your fav editor (vim).
Create a short ssh connection command:
alias aliasname='ssh -p portnumber username@ip.add.re.ss'
Something like this:
alias server1='ssh -p 555 me@123.456.789.0'
Here's a few other alias:
alias ls='ls -l --color=auto'
alias cls='clear && ls'
alias lm='ls -la| more'
alias df='df -h'
alias mv='mv -i'
alias rm='rm -i'
alias cp='cp -i'
alias delete='rm -i'
Written by Dave Board
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#