ssh connect to config profile but change ip address from file
- User
ssh connect to config profile but change ip address from file
- Assistant
If you want to SSH using a configuration profile from your
~/.ssh/configfile but override the IP address specified there with an IP address read from a file, here are some ways to achieve that.
Scenario
-
You have a profile in
~/.ssh/configlike:codeHost myserver User ubuntu HostName 192.168.1.100 IdentityFile ~/.ssh/id_rsa -
You want to SSH using the profile but override the with an IP read from a file (say, the file contains ).
-