From a unix machine I'm trying to FTP to a server but want to log in also in the command line

e.g. ftp 10.2.3.4 username:password

Can't find the general format for doing this? ftp 10.2.3.4 -u username -p password> doesn't appear to work either?

Thanks,