Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router security slow software sound toshiba trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
how to open a port for x window

Reply  
Thread Tools
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 12:53 AM #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 11,552 posts.
 
Join Date: Feb 1999
Location: Chambersburg, PA
Experience: Advanced
19-Jan-2004, 10: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
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
19-Jan-2004, 10: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.
MaxBodine's Avatar
Junior Member with 16 posts.
 
Join Date: Jan 2004
19-Jan-2004, 11: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
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
19-Jan-2004, 11: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
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
19-Jan-2004, 11: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, 11: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, 11:38 AM #8
default install
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
19-Jan-2004, 11: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, 11: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, 11:56 AM #11
Also I did the whereis sshd and it returns sshd:
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
19-Jan-2004, 12:00 PM #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, 12:20 PM #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, 01: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
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
19-Jan-2004, 02:31 PM #15
rpm -ivh

Read the man page on rpm

man rpm

What version of SSH did you download?
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
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 10:40 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.