ssh to local server - how to use hostname rather than IP
Hello,
I searched for a bit for this one but couldn't find any answers.I have a centos 5.2 local server and I want to use putty to access it. However, I want to type MACHINE1 rather than 192.1.... in putty. Is this possible? Thanks |
Yes, but you need some way to resolve the domain to an IP address. If you're running a DNS server, you can check to make sure that the SSH server is resolvable that way. If you're not, just add an entry to the hosts file (/etc/hosts in Linux, C:\WINDOWS\system32\drivers\etc\hosts on winxp etc.) of the box you're running putty on.
|
All times are GMT -5. The time now is 12:25 AM. |