Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh tunnel to non-standard ssh port

Reply
Thread Tools Display Modes

ssh tunnel to non-standard ssh port

 
 
gmac63@gmail.com
Guest
Posts: n/a

 
      08-20-2007, 11:03 AM
I have an instance where I am wanting to connect to a remote server
which has ssh listening on a non-standard port (22170). I cannot
create a ssh tunnel without ssh also listening to port 22 or have no
port assigned -- I also have to open port 22 on my firewall.

Is there a way that I can create a ssh tunnel to a remote server which
has ssh listening on a non-standard port? Here is my tunnel command:

ssh -f -N -R 22170:localhost:22 user@10.10.10.1

TIA
gmac63

 
Reply With Quote
 
 
 
 
Burkhard Ott
Guest
Posts: n/a

 
      08-20-2007, 11:54 AM
Am Mon, 20 Aug 2007 04:03:38 -0700 schrieb gmac63:

> I have an instance where I am wanting to connect to a remote server
> which has ssh listening on a non-standard port (22170). I cannot
> create a ssh tunnel without ssh also listening to port 22 or have no
> port assigned -- I also have to open port 22 on my firewall.
>
> Is there a way that I can create a ssh tunnel to a remote server which
> has ssh listening on a non-standard port? Here is my tunnel command:
>
> ssh -f -N -R 22170:localhost:22 user@10.10.10.1
>
> TIA
> gmac63


-p $RemotePort
 
Reply With Quote
 
gmac63@gmail.com
Guest
Posts: n/a

 
      08-20-2007, 03:45 PM

well son of a ...., that worked!!! Thanks Burhard!

gmac63

On Aug 20, 7:54 am, Burkhard Ott <postmas...@derith.de> wrote:
> Am Mon, 20 Aug 2007 04:03:38 -0700 schriebgmac63:
>
> > I have an instance where I am wanting to connect to a remote server
> > which has ssh listening on a non-standard port (22170). I cannot
> > create a ssh tunnel without ssh also listening to port 22 or have no
> > port assigned -- I also have to open port 22 on my firewall.

>
> > Is there a way that I can create a ssh tunnel to a remote server which
> > has ssh listening on a non-standard port? Here is my tunnel command:

>
> > ssh -f -N -R 22170:localhost:22 u...@10.10.10.1

>
> > TIA
> >gmac63

>
> -p $RemotePort



 
Reply With Quote
 
phil-news-nospam@ipal.net
Guest
Posts: n/a

 
      08-22-2007, 06:27 PM
On Mon, 20 Aug 2007 15:45:31 -0000 (E-Mail Removed) wrote:

| well son of a ...., that worked!!! Thanks Burhard!
|
| gmac63
|
| On Aug 20, 7:54 am, Burkhard Ott <postmas...@derith.de> wrote:
|> Am Mon, 20 Aug 2007 04:03:38 -0700 schriebgmac63:
|>
|> > I have an instance where I am wanting to connect to a remote server
|> > which has ssh listening on a non-standard port (22170). I cannot
|> > create a ssh tunnel without ssh also listening to port 22 or have no
|> > port assigned -- I also have to open port 22 on my firewall.
|>
|> > Is there a way that I can create a ssh tunnel to a remote server which
|> > has ssh listening on a non-standard port? Here is my tunnel command:
|>
|> > ssh -f -N -R 22170:localhost:22 u...@10.10.10.1
|>
|> > TIA
|> >gmac63
|>
|> -p $RemotePort

Also this can be done in the config file to always for a particular port
for a particular host.

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-08-22-(E-Mail Removed) |
|------------------------------------/-------------------------------------|
 
Reply With Quote
 
Jack Snodgrass
Guest
Posts: n/a

 
      08-22-2007, 07:41 PM
On Wed, 22 Aug 2007 18:27:12 +0000, phil-news-nospam wrote:

> On Mon, 20 Aug 2007 15:45:31 -0000 (E-Mail Removed) wrote:
>
> | well son of a ...., that worked!!! Thanks Burhard!
> |
> | gmac63
> |
> | On Aug 20, 7:54 am, Burkhard Ott <postmas...@derith.de> wrote:
> |> Am Mon, 20 Aug 2007 04:03:38 -0700 schriebgmac63:
> |>
> |> > I have an instance where I am wanting to connect to a remote server
> |> > which has ssh listening on a non-standard port (22170). I cannot
> |> > create a ssh tunnel without ssh also listening to port 22 or have no
> |> > port assigned -- I also have to open port 22 on my firewall.
> |>
> |> > Is there a way that I can create a ssh tunnel to a remote server which
> |> > has ssh listening on a non-standard port? Here is my tunnel command:
> |>
> |> > ssh -f -N -R 22170:localhost:22 u...@10.10.10.1
> |>
> |> > TIA
> |> >gmac63
> |>
> |> -p $RemotePort
>
> Also this can be done in the config file to always for a particular port
> for a particular host.
>


yes... there are examples in the /etc/ssh/ssh_config file.... something
like:

host hostname
port port-number

jack

--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
port tunnel Adam Linux Networking 2 05-12-2006 03:22 PM
standard tcp/ip port =?Utf-8?B?YWlybWFu?= Windows Networking 2 12-16-2005 09:23 PM
Ftp using non-standard port behind MN-500 Joseph Broadband Hardware 9 10-28-2004 06:17 AM
problem with vsftpd on a non-standard port Jason Linux Networking 0 05-14-2004 03:38 PM
linux vpn tunnel to bypass port blocking chris Linux Networking 0 01-20-2004 06:40 AM



1 2 3 4 5 6 7 8 9 10 11