echo "set completion-ignore-case on" >> ~/.inputrc
source ~/.bashrc-
Create RSA Key Pair
ssh-keygen
NOTE: If an SSH key already exists you will be prompted to overwrite it - Don't do it
-
Copy the Public Key to the Server Using the
ssh-copy-idcommand if it's availablessh-copy-id username@remote_host
If the
ssh-copy-idcommand isn't available this is an alternativecat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"
-
Authenticate to the Server Using SSH Keys
ssh username@remote_host
-
Disable Password Authentication on the Server (Optional) Edit the
/etc/ssh/sshd_configfile and Add the following line (or update it if it exists)... PasswordAuthentication no ...Save the file and restart the
sshservice by runningsudo systemctl restart ssh
Before closing the terminal check that you are able to login from another terminal to avoid getting locked out
Remove all node_modules directories from all subdirectories
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +