specify port number for sftp

I need upload some scripts to hostgator hosting /home/[username] directory, then sftp is a good choice here.

But I got following error:

Connecting to port 22 failed

After reading hostgator's documentation, I realized that hostgator hosting's default ssh port is 2222 but not 22. Then I tried:

But same error appeared again.. After searching on google for a while, I got that -oPort=2222 should be placed before username@host