mkdir -p ~/.ssh/
To overwrite authorized_keys
cat <your_key >~/.ssh/authorized_keys
To append to the end of authorized_keys
cat <your_key >>~/.ssh/authorized_keys
mkdir -p ~/.ssh/
cat <your_key >~/.ssh/authorized_keys
cat <your_key >>~/.ssh/authorized_keys