LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 05-04-2009, 10:54 AM   #1
PartY
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
Unable to access Linux Box


I have Fedora Core 9 installed. I am able to ping the machine as well as ping other machines from the Linux Box. But when I try to do SSH , I am getting a blank screen . It doesn't prompt for username and password. The box has snort installed. I am able to view the test page and base page in the linux box but able to view only the apache test page from my local machine

Need your help!!!!!!!!!!!!!
 
Old 05-04-2009, 11:07 AM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
Two questions:
  • Is sshd running?
    Code:
    ps -ef | grep sshd
  • Is a firewall blocking traffic on port 22?
    Code:
    iptables --list | egrep '(ssh|22)'
 
Old 05-04-2009, 11:23 AM   #3
PartY
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I have disabled firewall.

For

ps -ef | grep sshd

Output

root 4774 1 0 20:12 ? 00:00:00 /usr/sbin/sshd
root 5643 293 0 22:04 pts/1 00:00:00 grep sshd

For

iptables --list | egrep '(ssh|22)'

No output.
 
Old 05-05-2009, 06:35 AM   #4
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
Are you getting any "Connection closed" or "Permission denied" errors? It might be worth trying to telnet into port 22:

Code:
telnet <ip address>
Also, if you posted the /etc/ssh/sshd_config file from the server, we could see if we can see any hints to the problem there.
 
Old 05-05-2009, 08:15 AM   #5
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 280

Rep: Reputation: 32
Are you getting any error assuming that sshd is running ?
Please check your /var/log/messages for more information.
 
Old 05-05-2009, 10:22 AM   #6
PartY
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I am able to telnet on port 22. I get the following output

SSH-2.0-OpenSSH_4.2
 
Old 05-05-2009, 11:02 AM   #7
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
Quote:
Originally Posted by PartY View Post
I am able to telnet on port 22...
Oops, yes I forgot the "22" in the telnet command above. Sorry !

So SSH is definitely running. Things that would be be worth checking:
  • Authentication method: Are you using password-only? RSA? Host-based?
  • If host-based, is there an entry for the client machine in /etc/[s]hosts.equiv, and for the server in ~/.[rs]hosts?
  • If RSA-based, have you pre-shared the key?
  • Is there anything set in /etc/hosts.deny
  • Is there an /etc/nologin file on the server?
  • Is there anything in /etc/pam.d/sshd that may be preventing login (if PAM is being used)
 
Old 05-06-2009, 11:43 AM   #8
PartY
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
The weird problem is finally solved. The culprit was the network port.

I will fully explain the problem

I was able to ping the linux machine as well as ping other machines from the linux box. I was able to telnet on port 22 to the linux box. But when I try to ssh to the linux box from any machine it simply connected but didn't prompt for username and password. I was not able to ssh to any other linux box from that linux box.when I tried to open website hosted on the server I was able to access. The linux box was given a static ip address.

Later after all the troubleshooting I connected my laptop to the network port. But it was not getting the ip address from dhcp. but when I gave a static ip address it got connected and i was able to ping my desktop. But when I try to do RDC to my desktop it was not happening. So I decided the network port was the problem and put that linux box on a different port and the linux box was fully operational and I was able to connect using ssh.

Can anyone suggest what is the problem with network port? Or I missed something.

Your valuable suggestions required
 
Old 05-07-2009, 05:58 PM   #9
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 85
I could make some wild guesses about what the problem might be (dirty contacts, a failing component in the switch...), but they would be no more than guesses. I think that the reason telnet worked and ssh / RDC would not may be that telnet is a much simpler utility, and so less fussy about its network connection.

Still, glad you got the problem sorted .

Rob
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to browser internet on linux box a4arpan Linux - Newbie 17 10-18-2006 01:56 PM
Unable to access NTFS on linux box from windows... MrLizard Linux - Networking 3 09-11-2005 03:56 AM
Unable to ping Linux box Fritz_Monroe Linux - Newbie 3 05-19-2005 07:12 AM
Unable to see my windows box in linux lbabey Linux - Networking 5 11-15-2004 08:42 AM
How do I access files on Win box from Linux box zanew Linux - Networking 5 06-12-2002 11:58 AM


All times are GMT -5. The time now is 08:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration