SSH – User’s Config File

# The user's configuration file should [be] or [created] in ~/.ssh/config.
# Usage:
host [DesiredName]
    HostName [Host]
    User [UserName]
    Port [Port]
    IdentityFile [Path2File]

# Example: connect to host using public key authentication.
host station
    HostName 192.168.1.14
    User olakari
    Port 2222
    IdentityFile ~/.ssh/olakari.rsa

# Connect to host (this should connect to 'station').
ssh station

# Example: connect to host with forward of SSH agent.
host station
    ForwardAgent yes
    HostName 192.168.1.14
    User olakari
    Port 2222
    IdentityFile ~/.ssh/olakari.rsa

# Connect to host (this should connect to 'station').
ssh station
ssh-add [IdentityFile]