Open Reemh opened 4 years ago
We can try VS Code Remote Development.
We tried the proposed VS Code Remote Development and it works good. Sometimes there some disconnects, but in general it works good.
In the following some instructions how to setup and use an SSH key for the VS Code Remote Development (source).
ssh-keygen -t rsa -b 4096 -f "/c/Users/<USERNAME>/.ssh/lunamon_pi_rsa"
scp /c/Users/<USERNAME>/.ssh/lunamon_pi_rsa.pub pi@<RASPBIAN_IP>:~/key.pub
ssh pi@<RASPBIAN_IP>
-> enter pi password.ssh
directory exists: ls .ssh
cat ~/key.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
rm ~/key.pub
exit
ssh -i /c/Users/<USERNAME>/.ssh/lunamon_pi_rsa pi@<RASPBIAN_IP>
/c/Users/<USERNAME>/.ssh/config
with an editor
Host <RASPBIAN_IP>
HostName <RASPBIAN_IP>
User pi
IdentityFile "~/.ssh/lunamon_pi_rsa"
We want a way to be able to develop on my laptop but be able to trigger some CI stuff that publish this code on the PI automatically. A lazy solution would be to push here and pull there but that doesn't sound like a real solution.