Introduction
If your cPanel account uses a dedicated IP address, you can send email from that address and have Apache use it for the site. However, from the command line or by script, you can not use 'sftp' with the dedicated IP address when making an outbound connection. This article provides an 'sftp' option that should help when making an outbound connection from a dedicated IP address.
Procedure
This is an example of the 'sftp' command, which sends its outbound connection from a dedicated IP address on the cPanel server.
This 'sftp' connection will use the cPanel shared IP:
sftp [email protected]
While this 'sftp' connection will use the account's dedicated IP:
sftp -o BindAddress=dedicated-IP [email protected]
Please note that you must replace 'dedicated-IP' with the dedicated IP address of the cPanel account.