AmitKumarDas / Decisions

Apache License 2.0
10 stars 3 forks source link

ssh: kubernetes & k3sup #264

Open AmitKumarDas opened 3 years ago

AmitKumarDas commented 3 years ago

Connecting Jetson as a Kubernetes node using K3sup is only 1 command, however for it to work we need to be able to connect to both Jetson and the master node without password and do sudo without password, or to connect as root user.

If you need to generate SSH keys and copy them over you can run something like this

ssh-keygen -t rsa -b 4096 -f ~/.ssh/rpi -P ""
ssh-copy-id -i .ssh/rpi user@host

By default, Ubuntu installations require users to put in password for sudo command. Because of that, the easier way is to user K3sup with root account. To make this work copy your ~/.ssh/authorized_keys to /root/.ssh/ directory.

refer - https://medium.com/icetek/how-to-connect-jetson-nano-to-kubernetes-using-k3s-and-k3sup-c715cf2bf212