Opening and closing ports
Hello,
I'm trying to figure out how to open ports and start certain services in Slackware. To be more specific, I want to open or start port 111, among other services. I know about editing the /etc/inetd.conf file, but only a handful of ports are there. I have researched some here and google, but I haven't found the answer. I'm also trying to open applications through ssh, but I have not been very succesful. My guess is that I don't have a service running. Any help will be appreciated. |
If you don't have any firewall / iptables rules in effect, then ports will be "closed" unless a service is running on that port. To open port 111 you need to start a service running on port 111. Port 111 is SunRPC - I'm curious about what you'd need that for.
When you say you can't open applications through ssh, what do you mean? Can you not login to your machine with ssh? Try "ps -e | grep sshd" to see if ssh is running and "nmap localhost" to see what ports are open. |
Quote:
Quote:
|
If both machines on are on the local network you don't need to open ports. By default VNC runs on port 5900, just connect to "machine_name:0"
|
What VNC program (viewer and server) are you using? VNC usually runs somewhere in the 5800-5900 port range.
To do X forwarding over ssh, have a good read of the sshd man page |
Thanks for the info. Now I have to figure out how to forward X through ssh.
|
Quote:
I'm using the viewer. But every time I try to connect, the connection by the remote machine is refused. Not sure what I'm missing. |
Quote:
Cheers, odevans |
Quote:
|
On the remote machine (the one you want to run the application on) edit your /etc/ssh/sshd_config and uncomment (remove the #) from the line:
Code:
X11Forwarding yes Code:
root@server:# /etc/rc.d/rc.sshd restart Code:
user@client:$ ssh -X user@server |
Quote:
|
All times are GMT -5. The time now is 11:56 PM. |