Clean up README. Append to keys file

Append to keys file, in case someone forgets to add a key to the file.
This way they won't nuke the file by running the script and lose access
to the server.
This commit is contained in:
Marcin Jachymiak 2020-01-31 14:16:11 -05:00
parent 0044b11d69
commit f3025bde96
2 changed files with 12 additions and 5 deletions

View File

@ -7,13 +7,20 @@ that we are working with a Debian Buster Minimal system or similar.
## Initial Setup ## Initial Setup
(Assumes we are logged in as root on a fresh installation of Debian) (Assumes we are logged in as root on a fresh installation of Debian)
You may want to fork this repository and add your ssh pubkey to
`authorized_keys` and optionally edit the `tmux` and `bash` configurations.
0. SSH in a freshly installed Debian machine.
1. `apt-get update && apt-get install sudo` 1. `apt-get update && apt-get install sudo`
2. `adduser user` 2. `adduser user`
3. `usermod -a -G sudo user` 3. `usermod -a -G sudo user`
4. QUIT SSH SESSION 4. Quit the ssh session.
5. ON LOCAL COMPUTER: `ssh-copy-id user@ip-addr`
6. ON LOCAL COMPUTER: `ssh user@ip-addr` You a can now ssh into your machine as the user `user`.
7. (LOGGED IN AS USER): `sudo apt-get install git`
5. On your local machine: `ssh-copy-id user@ip-addr`
6. On your local machine: `ssh user@ip-addr`
7. Now logged in as `user`: `sudo apt-get install git`
8. `git clone https://github.com/NebulousLabs/skynet-webportal` 8. `git clone https://github.com/NebulousLabs/skynet-webportal`
9. `cd skynet-webportal/setup-scripts` 9. `cd skynet-webportal/setup-scripts`
10. Add ssh pubkeys to `authorized_keys` file. 10. Add ssh pubkeys to `authorized_keys` file.

View File

@ -69,4 +69,4 @@ pm2 --name skynet start npm -- start
cd $cwd cd $cwd
sudo cp ./ssh_config /etc/ssh/ssh_config sudo cp ./ssh_config /etc/ssh/ssh_config
mkdir -p ~/.ssh mkdir -p ~/.ssh
cp ./authorized_keys ~/.ssh/authorized_keys cat ./authorized_keys >> ~/.ssh/authorized_keys