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:
parent
0044b11d69
commit
f3025bde96
|
@ -7,13 +7,20 @@ that we are working with a Debian Buster Minimal system or similar.
|
|||
## Initial Setup
|
||||
(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`
|
||||
2. `adduser user`
|
||||
3. `usermod -a -G sudo user`
|
||||
4. QUIT SSH SESSION
|
||||
5. ON LOCAL COMPUTER: `ssh-copy-id user@ip-addr`
|
||||
6. ON LOCAL COMPUTER: `ssh user@ip-addr`
|
||||
7. (LOGGED IN AS USER): `sudo apt-get install git`
|
||||
4. Quit the ssh session.
|
||||
|
||||
You a can now ssh into your machine as the user `user`.
|
||||
|
||||
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`
|
||||
9. `cd skynet-webportal/setup-scripts`
|
||||
10. Add ssh pubkeys to `authorized_keys` file.
|
||||
|
|
|
@ -69,4 +69,4 @@ pm2 --name skynet start npm -- start
|
|||
cd $cwd
|
||||
sudo cp ./ssh_config /etc/ssh/ssh_config
|
||||
mkdir -p ~/.ssh
|
||||
cp ./authorized_keys ~/.ssh/authorized_keys
|
||||
cat ./authorized_keys >> ~/.ssh/authorized_keys
|
||||
|
|
Reference in New Issue