LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2008, 10:19 PM   #1
txm123
LQ Newbie
 
Registered: Nov 2004
Posts: 28

Rep: Reputation: 15
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
 
Old 09-15-2008, 10:22 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access server using hostname from other PCs on the local network binister Linux - Software 5 09-01-2006 04:13 AM
dhcpcd, dns, and the local hostname celejar Linux - Networking 3 10-23-2005 04:40 PM
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 08:37 AM
Backing up remote Linux Server to Local Win2KPro CD-RW over SSH McK66 Linux - General 3 06-08-2004 10:05 PM
local box hostname administration questions VioLaToR Linux - Newbie 2 01-30-2004 06:07 AM


All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration