Questions tagged [port-forwarding]

Questions about setting up, configuring, and maintaining port forwarding configurations. Be sure the question actually relates to Ubuntu in some way.

Filter by
Sorted by
Tagged with
146 votes
3 answers
171k views

How to create a restricted SSH user for port forwarding?

ændrük suggested a reverse connection for getting an easy SSH connection with someone else (for remote help). For that to work, an additional user is needed to accept the connection. This user needs ...
Lekensteyn's user avatar
  • 174k
35 votes
4 answers
306k views

Simple port forwarding

I am in a bit of trouble as I am trying to setup a reverse proxy with and a second server. My idea was to get the firewall to forward https to the reverse proxy and port 29418 (gerrit ssh) to the ...
uncletall's user avatar
  • 453
328 votes
7 answers
1.6m views

How to run the SSH server on a port other than 22

I have two computers behind the same router. Let's call them A and B. A can SSH to B in the following manner: ssh usr@<internal ip of computer> B can SSH to A by doing the same, but the ...
Gary's user avatar
  • 3,904
15 votes
2 answers
41k views

How to open a particular port in ubuntu?

My SoulSeek client Nicotine+ checks my open ports during initial configuration and promts that the one port number it needs is closed, cutting me off frmo about 50% of the users. Is there anyway I can ...
charlie's user avatar
  • 1,792
96 votes
5 answers
297k views

Redirect port 80 to 8080 and make it work on local machine

I redirected traffic for port 80 to 8080 on my machine with sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080 It works fine for all the world except my own machine. I ...
Max's user avatar
  • 1,168
58 votes
10 answers
615k views

ssh: connect to host myremotehost.com port 22: Connection refused

So I am trying to get ssh working on my server. I can connect on my local network with the local ip address of the server perfectly fine. When I try to connect remotely (through a domain name that I ...
bahudso's user avatar
  • 583
3 votes
1 answer
17k views

Port forward in terminal only

I have an old Ubuntu server (13.04), and want to open a port for this online game server style software for a mate. I need a port open, and to tell it that port (I know how to tell the game that port)....
Benji Marshall's user avatar
2 votes
3 answers
5k views

Forward Internet connection over ssh to remote computer

I'm struggling to access the internet from my remote computer. I'd like to access the remote computer via ssh and have there the internet connection available to install packages etc. It looks like ...
jonas-'s user avatar
  • 23
0 votes
2 answers
1k views

VirtualBox DNS Specific Port Forwarding

Here is my problem; I have virtual-box running on Ubuntu 64 bit (17.04) and I have multiple virtual machines (all Ubuntu 64 bit). I want to forward port 80, 25, 143 and 22 to all of the virtual ...
Nadav Tasher's user avatar
  • 1,078
8 votes
2 answers
32k views

Port Forwarding to Connect to MySQL Database of VirtualBox

I have Ubuntu 10.04 as host machine and Ubuntu 10.10 as guest machine installed in VirtualBox. I had success on port forwarding to connect to Apache of guest machine, so that now I can open in host ...
Bakhtiyor's user avatar
  • 12.3k
7 votes
1 answer
19k views

How Can I Open A Port On Ubuntu?

Ubuntu 13.04: No LSB modules are available Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring I'm attempting to open port 8888 on an Ubuntu VM that I'm ...
Onorio Catenacci's user avatar
6 votes
1 answer
6k views

UFW OpenSSH application port change?

When using UFW I see there are "applications" like OpenSSH or Apache, to name a couple. If I were to change my SSH default port to something other than the 22, would the OpenSSH application rule map ...
Eddiefiggie's user avatar
5 votes
2 answers
43k views

How to connect to a certain port on SSH [duplicate]

So, I am setting up an ssh server. I have installed the ssh-server program on my server. However, I didn't want to connect to it through port 22, because reasons, so I set the server to listen through ...
user avatar
4 votes
2 answers
14k views

VNC Server port is closed

I installed TigerVNC server on my Ubuntu server but I can't connect to it. The server is running but when I try to scan for open ports (in LAN) using my phone, 5901 is closed. Output of nmap localhost:...
adazem009's user avatar
  • 1,032
4 votes
1 answer
2k views

How to access a port on a remote server using SSH?

I have a service running on a certain port at the server. What I want to do is, access the server using SSH and use a local (client-side) program to access the server's port. Is that possible?
Oxwivi's user avatar
  • 17.8k