Dependencies:
brew install stoken
-
Click on the RSA link in your email and copy the 'ctfData' string value from the address bar and use it with the command below:
stoken import --token='com.rsa.securid://ctf?ctfData=YOUR-CTF-DATA-HERE'
-
Enter your PIN as your password
-
Get your Device ID or 'Binding ID' from your RSA ID app on your mobile device under the info tab, long pressing over the id also will allow you to share it to yourself.
-
Enter the device id if the app asks for it..
-
You now have stoken configured!
You can use a function similar to this to now generate your RSA string from your shell to your clipboard.
rsa ()
{
vared -p 'RSA PIN: ' -c pin
printf '\n'
printf '%s%s' "$pin" "$(stoken --stdin <<<"$pin")" | pbcopy
}