Is there a simple way to retrieve the IP of a
HostName from an ssh config on the command line? Many times I have to use
scp and would like to connect to a machine, but I remember only the HostName.
scp will read your
since that seems sort of short to be an answer, here's some more info with things you can do with your ssh config...
Here's a post that describes some of the advanced features of the ssh config file: http://magazine.redhat.com/2007/11/27/advanced-ssh-configuration-and-tunneling-we-dont-need-no-stinking-vpn-software/
Need to tunnel ssh/scp through an http proxy? no problem, just use the steps outlined here: http://www.mtu.net/~engstrom/ssh-proxy.php
Another use of the ProxyCommand option: http://jasonmc.wordpress.com/2008/04/16/ssh-magic/
Usually, you can do
To do these things, either your machine's resolver has to have a correct config (in file /etc/resolv.conf and maybe /etc/nsswitch.conf) or you have to use a "fully qualified domain name", complete with host, domaiin, and "TLD" (.org, .com, .net that sort of suffix).
There's no need to do that for