Other HUB nodes: Difference between revisions
Andre Castro (talk | contribs) (Created page with "Category:Xpub Admin Documentation") |
Andre Castro (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Xpub Admin Documentation]] | [[Category:Xpub Admin Documentation]] | ||
==Steps to add a new Node to [[HUB]]== | |||
* in your Pi's create a user <code>adduser<code> with same name as used in the [[XPUB Sandbox|Sandbox Pi]] | |||
. Keeping it the same as in the sandbox - will make things easier for us and gnd (no need to give him again your public ssh key) | |||
<pre> | |||
* add your public ssh key to your username in the Pi (same as mentioned) to ~/.ssh/authorized_keys | |||
There is a trick to do this with | |||
`cat ~/.ssh/id_rsa.pub | ssh local.pi.IP.addr "cat >> ~/.ssh/authorized_keys"` | |||
* install Tinc on the Pis Instructions can be found here https://pzwiki.wdka.nl/mediadesign/Tinc | |||
* Add your chosen Node name and IP to https://pzwiki.wdka.nl/mediadesign/HUB#IP_allocation | |||
* Student project IPs last number should have 3 digits, last one is Simon's 10.0.1.103, so you can start from there | |||
* disable ssh to your pi with password (allow ssh key only) | |||
ensure: | |||
* you laptops ssh public key is in your pi ~/.ssh/authorized_keys: `cat ~/.ssh/authorized_keys` | |||
* you can login to the Pi with ssh key: ssh username@pi.ip.add -i ~/.ssh/id_rsa | |||
edit /etc/ssh/sshd_config: `sudo nano /etc/ssh/sshd_config` | |||
and uncomment the line: #PasswordAuthentication no | |||
to: PasswordAuthentication no | |||
reload ssh: `sudo systemctl reload ssh` | |||
On this side: @Andre | |||
* I will need to give invitation links to each node https://pzwiki.wdka.nl/mediadesign/HUB#Adding_a_new_thing | |||
* ask gnd to associate your username+pub key to the Pi IP: | |||
</pre> |
Revision as of 13:00, 16 April 2020
Steps to add a new Node to HUB
- in your Pi's create a user
adduser
with same name as used in the Sandbox Pi
. Keeping it the same as in the sandbox - will make things easier for us and gnd (no need to give him again your public ssh key)
* add your public ssh key to your username in the Pi (same as mentioned) to ~/.ssh/authorized_keys
There is a trick to do this with
`cat ~/.ssh/id_rsa.pub | ssh local.pi.IP.addr "cat >> ~/.ssh/authorized_keys"`
* install Tinc on the Pis Instructions can be found here https://pzwiki.wdka.nl/mediadesign/Tinc
* Add your chosen Node name and IP to https://pzwiki.wdka.nl/mediadesign/HUB#IP_allocation
* Student project IPs last number should have 3 digits, last one is Simon's 10.0.1.103, so you can start from there
* disable ssh to your pi with password (allow ssh key only)
ensure:
* you laptops ssh public key is in your pi ~/.ssh/authorized_keys: `cat ~/.ssh/authorized_keys`
* you can login to the Pi with ssh key: ssh username@pi.ip.add -i ~/.ssh/id_rsa
edit /etc/ssh/sshd_config: `sudo nano /etc/ssh/sshd_config`
and uncomment the line: #PasswordAuthentication no
to: PasswordAuthentication no
reload ssh: `sudo systemctl reload ssh`
On this side: @Andre
* I will need to give invitation links to each node https://pzwiki.wdka.nl/mediadesign/HUB#Adding_a_new_thing
* ask gnd to associate your username+pub key to the Pi IP: