Skip to content

Instantly share code, notes, and snippets.

@anavdesign
Created January 19, 2019 20:03
Show Gist options
  • Save anavdesign/886097e7a9c1eac4839bc95ace8fea9e to your computer and use it in GitHub Desktop.
Save anavdesign/886097e7a9c1eac4839bc95ace8fea9e to your computer and use it in GitHub Desktop.
Remote: Server Setup

Remote Server Setup

SSH Access

  1. Enable SSH Remote Server

  2. Import Public Key

    Copy and enable Public Key to Remote Server /.ssh/id_rsa.pub

  3. Add SSH Alias

    add stanza to /.ssh/config

    # NAME
    Host alias
        User USERNAME
        Hostname HOSTNAME
        port 0000
    

Bash Setup

  1. update .bash_profile on remote server

    export PS1='name:[\W] $ '                                   # Bash Custom Promt
    alias ls='ls -lahF --color'                                 # List File Options
    alias editBash='nano ~/.bash_profile'                       # Edit Bash
    alias loadBash='source ~/.bash_profile'                     # Load Bash
    alias sites='cd ~/public_html/'                             # Sites Root
    alias killDS='find . -name '*.DS_Store' -type f -delete'    # Delete DS_STORE Files
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment