by Lightning » Mon Jun 13, 2011 9:11 pm
Hmmmmm I suspect that you can use the 'ssh' command which is a part of Dropbear along with a script to do what you are asking. The ssh part of Dropbear can use any authorized key file and it is specified on the command line. So in essence it would be a script that controls an SSH connection doing the job of plink. There should be examples on how to use the Dropbear SSH option and using a key file to log in. The best way to start is to get the command working manually from the command line and then make a simple script to do it automatically. Which would be pretty simple if I new the commands needed.
ssh -p <remoteport> -y -t -i <identityfile> -l <username>
-p <remoteport>
-y accept remote host keys, if unknown
-t Allocate a pty
-T Don't allocate a pty
-i <identityfile> (multiple allowed)
-L <listenport:remotehost:reportport> Local port forwarding
-R <listenport:remotehost:remoteport> Remote port forwarding
-l <username>
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.