in case when (in this example) port 12010 is used for ssh instead of default port 22
ssh -p 12010 user@server sftp -oPort=12010 user@server scp -P 12010 file user@server:/tmp or scp -oPort=12010 file user@server:/tmp