SSH Cheatsheet
SSH Cheat Sheet
Login via SSH with password (LOCAL SERVER)
Create folder, file, install Apache (Just messing around)
Generate Keys (Local Machine)
Add Key to server in one command
Create & copy a file to the server using SCP
DIGITAL OCEAN
Create Keys For Droplet (id_rsa_do)
Try logging in
If it doesn't work
Login should now work
Update packages
Create new user with sudo
Login as bryan
We need to add the key to bryans .ssh on the server, log back in as root
Disable root password login
Set the following
Reload sshd service
Change owner of /home/bryan/* to bryan
May need to set permission
Install Apache and visit ip
Github
Generate Github Key(On Server)
Add new key
If you get a message about auth agent, run this and try again
Clone repo
Install Node
Install Dependencies
Start Dev Server and visit ip:3000
Build Out React App
Move static build to web server root
SSH Cheat Sheet
Login via SSH with password (LOCAL SERVER)
Create folder, file, install Apache (Just messing around)
Generate Keys (Local Machine)
Add Key to server in one command
Create & copy a file to the server using SCP
DIGITAL OCEAN
Create Keys For Droplet (id_rsa_do)
Try logging in
If it doesn't work
Login should now work
Update packages
Create new user with sudo
Login as bryan
We need to add the key to bryans .ssh on the server, log back in as root
Disable root password login
Set the following
Reload sshd service
Change owner of /home/bryan/* to bryan
May need to set permission
Install Apache and visit ip
Github
Generate Github Key(On Server)
Add new key
If you get a message about auth agent, run this and try again
Clone repo
Install Node
Install Dependencies
Start Dev Server and visit ip:3000
Build Out React App
Move static build to web server root
Last updated