LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-23-2009, 04:20 PM   #16
linuxlychallenged
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 15

ran nc -l 9922 on the server

had to run netcat from the testing server, didn't have nc command

netcat -zvw 3 XXX.XX.XXX.XXX 9922
XYZ.XYZ.XXYYZZ.edu [XXX.XX.XXX.XXX] 9922 (?) : Connection timed out

it resolved the name correctly (the XYZ.XYZ.XXYYZZ.edu) but connection timed out.

Also, I did stop the iptables with # service iptables stop

side note question why do people put # then a command is it just to signify that its a command? and why did you put a $ instead of # ? did you just use a different version of linux or unix? [sorry I know so little about linux]
 
Old 10-23-2009, 04:42 PM   #17
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
$ == user shell prompt
# == root shell prompt

Something is filtering traffic to your host. (And that is easily demonstrated with the nc commands I mentioned.) Bottom line: if you can't establish a tcp connection to the service port, you're not going to be able to use ssh, period.
 
Old 10-23-2009, 04:44 PM   #18
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by linuxlychallenged
here is the /var/log/secure
Oct 21 05:12:37 sysb sshd[20815]: User XXX not allowed because shell /bin/
shell does not exist
Oct 21 05:12:37 sysb sshd[20816]: input_userauth_request: invalid user XXX
Oct 21 05:12:37 sysb sshd[20815]: reverse mapping checking getaddrinfo for
10.155.xxx.xxxxxxxx.edu failed - POSSIBLE BREAK-IN ATTEMPT!
Earlier in this thread you were connecting to sshd just fine. So we're making backward progress.

Think hard about what you changed between then and now.

-------

edit: Upon closer inspection, I think those messages were from your internal network connections. If so, never mind.

Last edited by anomie; 10-23-2009 at 04:48 PM.
 
Old 10-23-2009, 04:56 PM   #19
linuxlychallenged
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 15
The earlier SSH's with that user were from my internal connection. So, to you it seems like I need to speak to the Network people again? Maybe I spoke with someone that was misinformed? I don't think it matters but I can view the html files on the server from anywhere (which is a tcp connection over port 80 right?)

Last edited by linuxlychallenged; 10-23-2009 at 05:00 PM.
 
Old 10-23-2009, 05:37 PM   #20
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Yes, http is tcp port 80. (https is tcp port 443.)

Before you talk to your network staff, put together and document a test case which clearly shows:
  1. that your host-level firewall is off
  2. that sshd is listening on tcp 22 (use the netstat command output)
  3. that connections to sshd from external hosts are being filtered (use nc or nmap)

Include that (concise, neat) documentation in your next request to them.
 
Old 10-23-2009, 05:41 PM   #21
linuxlychallenged
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 15
Sounds like the voice of someone who has had to read requests like this submitted to them daily

I really appreciate the help. I will try to remember to let everyone know what I find out when I hear from the Network staff again. I really appreciate everything.
 
Old 10-23-2009, 11:59 PM   #22
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
If you can ssh access the server from your local network and you can not access from outside, there might be a possibility that the ssh traffic is getting blocked in local system firewall.

You can do a ping/traceroute test from outside (hope they are allowed by the network admins)to check the connectivity. However, I believe that that will go through as you are able to access the website hosted on the same server.

Do you have any rule in your /etc/hosts.deny file for sshd?
 
Old 10-26-2009, 01:40 PM   #23
linuxlychallenged
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 15
@avijitp
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!

Nope, above is the contents of hosts.deny. And its all commented out.

And yes I can ping from the outside, and I'm not sure about traceroute because the test box I'm logged into remotely needs su privileges and I don't have them for the remote machine I'm using to test my server with.
 
Old 10-28-2009, 02:59 PM   #24
linuxlychallenged
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 15
So I just wanted to let everyone know, that the problem is not fixed yet, but the Network people have said they are going to fix it. So, apparently I spoke with someone who was misinformed the first time. Thank you all for the help and hopefully this is resolved now.
 
  


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
two questions about red hat 9 micpat Red Hat 7 08-19-2005 04:05 PM
Red hat 9 questions Oakstaff Linux - Newbie 3 11-07-2003 12:55 PM
Red Hat 9 Questions DataClast Linux - Distributions 11 04-16-2003 03:22 PM
SSH and Red Hat 7.3 gravyflex Linux - Newbie 9 03-23-2003 09:12 PM
SSH on Red Hat 6.2 markma Linux - Security 4 12-21-2000 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:13 PM.

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