Connecting to a server that requires two passwords

Hi,

I am trying to connect to my ftp server at the university.
When I connect to the server manually from ftp shell, I first send my username and a one-time-password generated by a device I own. After I am authenticated I connect to another server and give the same username with a different password.

the actions I perform are therefore:
open sg.cs.huji.ac.il
<username>
<one-time-password>
user <username>@<server_name>
<password>

When I connect via smartftp, it doesn't work. and I can't give the second password.

How can I solve this? Can I switch to manual mode and perform the authentication myself?

Thanks.