0

I want to be able to retrieve values from an embedded device every minute. Currently I have a script that does this over ssh but I have to type in the password for the embedded device every time I connect to it over SSH. The embedded device is read only and there is absolutely no way I can mount it as writeable at this time. The embedded device is configured badly so I can't even temporarily upload the id_rsa.pub of my machine to the embedded device to allow me to automatically connect using public key authentication. The other problem is I can also not use the "expect" keyword or sshpass daemon since I can't install software on the embedded device.

I forgot to say there is another read only embedded device between me and the embedded device with the data on.

Is there any hope for me? Thanks for your time.

  • could also use expect scripting language or something like sshkit in ruby to automate the connecting and retrieval from the device, what lang in current script written in. – Doon Oct 24 '13 at 12:28
0

expect is to be run not on the embedded but the system you're logging in from.

  • I forgot to say there is another read only embedded device between me and the embedded device with the data on. – Mr Anderson Oct 24 '13 at 12:32
  • Well, you gotta learn how to input pass for the port forwarding through it, then. ) – poige Oct 24 '13 at 12:36
  • So I can open a tunnel and just try keeping it open instead of having to connect over and over again? – Mr Anderson Oct 24 '13 at 12:42
  • Sure you can do it that natural way. ) – poige Oct 24 '13 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.