Define outgoing ip address when using ssh

Posted by Mark on Ask Ubuntu See other posts from Ask Ubuntu or by Mark
Published on 2012-12-13T22:59:19Z Indexed on 2012/12/13 23:20 UTC
Read the original article Hit count: 260

Filed under:

I have an ubuntu server machine (12.04) with 4 IP addresses for different websites that require unique ssl certificates.

I sometimes ssh out from this box and the box I am going to I have to tell it what IP address I will be coming from.

How do I specify which of the 4 ip addresses I want to use as my outgoing IP address?

If i do an ifconfig it appears that I am going out as the last ipaddress.

I guess you would want to specify either the address or the interface....

Thanks in advance!

-Mark

© Ask Ubuntu or respective owner

Related posts about ssh