I have ~20 public IP addresses defined on my server. Now, when I connect to a remote server via terminal, it gets connected from the primary IP of my server.
But I want to use terminal from my another IP address. Is this possible?
I have ~20 public IP addresses defined on my server. Now, when I connect to a remote server via terminal, it gets connected from the primary IP of my server.
But I want to use terminal from my another IP address. Is this possible?
If you are using ssh to connect to the remote host then you can use the
BindAddress
directive to specify a local address to us for the connectionYou can use this like so
You can also configure your ~/.ssh/config file to do this on a per host basis.
Note that the Host matched has to be the same as that specified on the command line but you can use wildcards.
If you're using telnet then use the -b switch