about: twothirds | twothirds on the go (mobile) | Race Checklists

Monday, May 29, 2006

Opie (otp) on OS X/Mac

I have to use opie to login to various servers that require one time passwords (otp). The Skey DarwinPorts package provides the required client, but I could not copy/paste the opie challenge and invoke the opie client:
jmichno@MacBook:~
> otp-md5 499 ba4826
-bash: otp-md5: command not found

This is easily remedied with a simple shell script:
/usr/local/bin/otp-md5
#!/bin/sh

CMD="skey -md5 $1 $2"
$CMD

And the after...
> otp-md5 499 ba4826
Reminder - Do not use this program while logged
in via telnet or rlogin.
Enter secret password:
SOCK AMES BANE BORN DIN COOK

Labels: , , ,

0 Comments:

Post a Comment

<< Home