SSH over SSH: port forwarding
- date: February 6, 2011
I have 3 computers; XP, Mac and Ubuntu. I wanted to use Mac connect to Ubuntu by using SSH and also wanted to port forwarding 5999 to Ubuntu's ssh as well. But I got connection refused all the time. Please Help
This is my command on my Mac:
ssh -L 5999:ubuntu:22 [email protected]
it's connected successfully.
But when I used XP to connect to Mac via ssh port 5999: ssh winxp -p 5999. I got connected refused. What I was expecting is, I could connect to ubuntu from winxp via mac on port 5999
Am I missing something here?
Thank you so much.
ssh port forwarding
location: ubuntuforums.com - date: November 27, 2010
Hi All, trying to to set up ssh so that I can login to my laptop from other locations. I have a dsl modem and wrtu54g wireless router. My laptop is set to a static ip address 192.168.28.110. The router ip address is set to 192.168.28.28. The dsl modem pages shows that the router address is 192.168.1.30???
I've set my router to forward port 22 to 192.168.28.110. I've tried forwarding port 22 on the dsl router to both 192.168.28.28 and 192.168.1.30. But when I try "ssh IP_address_dsl" I receive "ssh: connect to host ipaddress port 22: Connection refused"
What am I missing?
SSH port forwarding problem
location: ubuntuforums.com - date: August 15, 2010
I would like to be able to access my desktop remotely without having it exposed directly to the internet. So what I've done is I've installed an ssh-server on an old P4 as well as on the desktop. This way I only have to open 1 port (well 2; see below) in my router and forward it to the P4 so the ssh-server on the desktop is not exposed to the internet. I ssh over internet into the P4 and from there over LAN into the desktop, so far I've got X-forwarding and vnc to work but I can't figure out how to copy files over from my desktop to my laptop or the other way around.
This is my setup:
A: Laptop with Windows 7
B: P4 Ubuntu 10.04 acting as 'gateway' to ssh into from my laptop over the internet to access desktop on LAN (ssh-server on 23232)
C: Desktop Ubuntu 10.04 (ssh-server on 23231)
Everything is behind a NAT router with only ports 23232 and 23230 forwarded to B.
The reason I opened 23230 is because I'm using port forwarding (see step 2 below) so I can connect directly from m
SSH port forwarding, disable or edit a forwarded port
- date: November 1, 2010
I managed to set up port forwarding through ssh like this
sudo ssh -L 750:192.168.123.103:873 [email protected]
It does exactly what it's supposed to do, but how do i edit / remove this rule?
Is there some config file where i can alter the forwarding? How does it get stored?
Im using Ubuntu 10.10 Server Edition (allthough i recon it would be pretty much the same across all versions)
Sorry for my noobishness...
SSH port forwarding
location: linuxquestions.com - date: May 29, 2002
I want to get to a linux box that is behind my linux firewall, but I can't address the internal machine directly. I know it's possible to use SSH to port forward. I want the connection from the external machine to linux firewall to be encrypted, after that it doesn't need to be encrypted. I was wondering what command could do this?
xinetd launched ssh port forwarding
- date: January 20, 2005
Hello. I would like to be able to send email using my school account from off campus, which is normally blocked by their firewall. I have been using port forwarding to accomplish this, for example:
I do <I>ssh -L 25:mailserver:25 [email protected]
</I> to forward local port 25 to port 25 on their mail server. I then configure my email client to use localhost as the SMTP server.
This has been working just fine, however, I would rather not have to establish the ssh connection before being able to send mail. Ideally, I would like to have xinetd listen for connections on port 25, and then open the ssh connection when it detects one. I have been reading about xinetd, but I have not been able to accomplish this. I have been able to make xinetd establish the ssh connection in response to a port 25 access, however, ssh complains that the port is in use and cannot forward it.
I've also had xinetd open the ssh connection on a different port and then redirect the connection to
Confused with SSH port numbers
- date: December 5, 2008
Hello to all,
I am a little confused about the definition of the ports during the ssh tunnel set up and I hope somebody here will clarify it for me. Let's take an example command to connect my local computer to remote one:
$ ssh -L 50000:localhost:5900 -p 22 [email protected]
As far as I know in the above example command: 50000 is the port out from my machine, 5900 is the port into the remote machine. But I've seen the usage of additional port definition: "-p 22" or any nonstandard port number such as "-p 1023". Is this port on the remote computer as well? Then why are we using 2 different ports: 5900 and 22?
Thanks for any input in advance.
If I change my SSH port number, will my DSA key still work?
location: ubuntuforums.com - date: September 19, 2009
I want to change my SSH port number. Will this require a new DSA key? I'm working from home right now and don't want to accidentally lock myself out of the system until Monday morning.
Change ssh port number
location: linuxquestions.com - date: March 6, 2004
Does anybody know who can i change ssh to use port 80 insted of 22, the reason i want to do this is because when im at school port 80 is the only way out, everything else i firewalled and i need to ssh to computer.
Thanks a lot
Im running redhat 9
forgot ssh port
location: linuxquestions.com - date: June 7, 2010
is there a way to scan for the ssh port?
I lost my settings file on a restore and now cannot connect through putty.
I set a non default port in ssh and iptables
Page: 1 2 3 4 5 6 7 8 9 10