LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-08-2013, 12:20 AM   #1
Uva18
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
Cant connect to Centos via Putty using ssh. Error name unable to resolve


i Cant connect to Centos via Putty using ssh. Error name unable to resolve. i have enable the firewall setting on port 22 ssh tcp & udp. It worked once then the following time, its giving "temporary unable to resolve host name". i tried putting i.p but same error. pls help
 
Old 08-08-2013, 12:53 AM   #2
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Did you try ping to the remote CentOS host?
 
Old 08-08-2013, 01:34 AM   #3
Uva18
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
yes, i am able to connect via putty using telnet but not ssh. earlier when i entered 192.168.1.9:1, it was able to go in. then i closed the session & now i cant login. the service is started.

Last edited by Uva18; 08-08-2013 at 01:36 AM.
 
Old 08-08-2013, 07:22 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
'Unable to resolve...' means it can't find a DNS entry to convert hostname to ip addr. You should be able to connect via ipaddr using telnet or ssh, unless its firewalled off.
 
1 members found this post helpful.
Old 08-08-2013, 08:23 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by chrism01 View Post
'Unable to resolve...' means it can't find a DNS entry to convert hostname to ip addr. You should be able to connect via ipaddr using telnet or ssh, unless its firewalled off.
yup what chrism01 stated. this means your MS Windows computer does not know the NAME of your CentOS box.

in the putty setup window use the IP, not the URL/FQDN and also do not use port 1, use standard port 22.

This is 100% an issue of the computer you are running Putty on, not your CentOS box, or ssh.
 
Old 08-08-2013, 09:51 PM   #6
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Quote:
Originally Posted by Uva18 View Post
yes, i am able to connect via putty using telnet but not ssh. earlier when i entered 192.168.1.9:1, it was able to go in. then i closed the session & now i cant login. the service is started.
Are you using the IP address everytime? I looks strange since you can telnet but not ssh. Then there's your DNS issue. I'd like to think of these as separate problems.
 
Old 08-10-2013, 01:40 AM   #7
Uva18
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yes i am using ip address. I disabled the firewall & antivirus. still the same. i am currently using tightvnc to login to make certain changes. others via telnet. i am new to this but most rules in windows,mac or linux all runs the same basics(linux mostly).
its not an issue but i want to figure out why i cant connect using ssh port 22. it by right should'nt. i tried to modify the setting in konsole but permission denied (even in root). Dumb question...could it be blocked by other software like zpanel or mebuzo?
 
Old 08-10-2013, 11:06 AM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by Uva18 View Post
Yes i am using ip address.
you will NOT get a "Error name unable to resolve" if you are using IP address. This as i clearly stated above is a DNS issue in Windows. Add the NAME you are using along with the IP to your MS Windows host file. typically located C:/Windows/System 32/host, you will need to do this with admin rights and you will need to be able to view hidden files.

It should look something like this:

Code:
#	127.0.0.1       localhost
#	::1             localhost
192.168.5.125		server
192.168.5.201		user1
192.168.5.209		user3
192.168.5.100		user2
192.168.5.220		user4
After you have done that, reboot your MS Windows computer and you should be able to resolve names properly to your CentOS server.

Quote:
i tried to modify the setting in konsole but permission denied (even in root).
What permissions were you trying to modify? You have to be careful when you start mucking around with system permissions like ssh and sshd.

You still have not told us what vs of CentOS you are running, but im going to go out on a limb here and guess it is semi modern, meaning v 5.x or 6.x, and that you have not changed SELinux settings from enforcing to permissive.

http://www.cyberciti.biz/tips/enable...g-purpose.html

there is a very simple way to put SELinux in permissive. NEVER disable SELinux.
 
  


Reply



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
Unable to resolve domain names on CentOS 6.2 server thecountryman Linux - Networking 1 06-13-2012 05:03 PM
Unable to get ssh through putty manishrmusale Linux - Server 4 10-28-2011 02:14 AM
Unable to SSH using Putty remotely (different country) br20293 Linux - Networking 7 12-27-2008 10:00 AM
Unable to ssh through putty?? your_shadow03 Linux - Newbie 20 09-15-2008 05:44 AM
unable to connect Slackware Using Windows putty gfujoseph Slackware 5 12-20-2007 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:52 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
Open Source Consulting | Domain Registration