There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
how to open a port for x window


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
18-Jan-2004, 11:53 PM #1
how to open a port for x window
I need to find out how to open a port for x window to use so I can get help from a remote friend.

I have no clue what changes or how to do it. As you can tell I am a new new newbe

on installing twice I selected no firewall and it still set it up as medium with no ssh or anything.

Everything I have read hasn't helped. I need to get my ssh up or open a port for xwindow. The later of the two at this point would be appreciated.

Thanks in advance!
TechGuy's Avatar
Computer Specs
Administrator with 8,445 posts.
 
Join Date: Feb 1999
Location: Chambersburg, PA
Experience: Advanced
19-Jan-2004, 09:38 AM #2
I don't know how to do it in X, but the command line "setup" (no quotes) will take you into there I always set my firewall.
Squashman's Avatar
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Jan-2004, 09:57 AM #3
Well several factors can be involved in this. One could be a firewall and the other could be if your computer is behind a Router doing NAT. And the other question is do you want them to have SSH or X-windows. The latter is going to require a VNC application.

If your Linux box is hooked up to a router you will need to forward port 21(SSH) on your router to the internal IP address of your Linux box. Are you sure the SSH daemon is even running. Open up a shell prompt and type:

ps -A | grep sshd

I dont know which version of Linux you are using, I am assuming Red Hat from your previous posts. Not sure what Red Hat uses for their default firewall. Try typing setup at a shell prompt. You should get some configuration options for your Firewall.

If Red Hat uses Iptables by default try posting the results of:
iptables -L That will give you all the rules of all the chains.
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 10:21 AM #4
my resluts
ps -A | grep sshd gives me nothing
ps -A | grep iptables gives me 1745 pts/0 00:00:00 iptables-restor
rpm -qa | grep iptables gives me iptables-1.2.8-8.72.3
rpm -qa | grep ipchains gives me ipchains -1.3.10-10
setup does nothing
chkconfig does nothing
nmap gives me
25/tcp open smtp
111/tcp open srunpc
6000/tcp open X11


people will tell me to try things like setup and it doesn't do anything. I can get manuals on them, just can't use them. I am in root???

I am using Redhat 7.2

any ideas from this?

Thanks for your help.
Squashman's Avatar
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Jan-2004, 10:30 AM #5
type:
whereis sshd

If it is installed the service may not be started.
type this to start the service:
/etc/init.d/./sshd start
Squashman's Avatar
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Jan-2004, 10:33 AM #6
Was this a default server install or did you do a custom install.
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 10:35 AM #7
I get
./sshd no such file or directory
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 10:38 AM #8
default install
Squashman's Avatar
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Jan-2004, 10:41 AM #9
cd /etc/init.d

Is sshd in the that directory.

Is SSHd even installed.

rpm -qa | grep openssh-server
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 10:45 AM #10
no it isn't in that directory

and no on the rpm thing.
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 10:56 AM #11
Also I did the whereis sshd and it returns sshd:
Squashman's Avatar
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Jan-2004, 11:00 AM #12
So this tells you it is not installed. Find your Red Hat 7.2 install disks. You will find the rpm for OpenSSh- server on one of the disks. I am not sure which one it is.
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 11:20 AM #13
Sorry it took so long. I had to go to redhat and download them. I have them in my home. Not don't I use rpm -Fvh openssh-* and it will intall them where the go?
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 12:07 PM #14
Okay I ran them that way. I thought v and h was supposed to show me where it went. Of course on this machine it didn't I did your whereis and it directs me to /usr/libexec/openssh.

I repeated these instructions
cd /etc/init.d
the sshd is not in the that directory.

cd /etc/init.d/./sshd start not in there...

rpm -qa | grep openssh-server brings me back to my root prompt

What do I need to do at this point? I have reinstalled 6 - yes 6 times. Shall I go for 7??? Or the dumpster ;-)
Squashman's Avatar
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Jan-2004, 01:31 PM #15
rpm -ivh

Read the man page on rpm

man rpm

What version of SSH did you download?
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:37 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.