- Install an SSH client to your chroot:
- sudo schroot -r -c lv
- opkg update
- opkg install openssh
- exit
- Configure pub key authentication so you don't have to type in a password interactively (Hint: This let's you use the SSH client from LabVIEW System Exec VI).
- ssh-keygen -t rsa
- stick with the defaults when it prompts you, especially when it asks for the passphrase; we want an empty passphrase
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- sudo mkdir /srv/chroot/labview/root/.ssh
- sudo cp ~/.ssh/id_rsa* /srv/chroot/labview/root/.ssh/.
- Now log back into the chroot and run the SSH command once so that you can add localhost to the list of known hosts
- sudo schroot -r -c lv
- ssh root@localhost ls
- When prompted to add localhost to the list of known hosts, say yes
- exit
linux中安装labview linx ssh工具
最新推荐文章于 2024-04-14 21:21:00 发布