Jump to content

arrange a port forward via ssh-tunnel - on www2.mydomain.org:2211


Recommended Posts

Port forwarding to what end? Actually I'm not even sure you want port forwarding at all. Port forwarding in SSH is a matter of using your SSH connection to let your machine communicate with the other machine when things like firewalls or NAT would normally get in the way. For example, you could forward your local port 2211 to the www2.mydomain.org machine's port 80, then http://localhost:2211 would work the same way as if you had browsed to http://www2.mydomain.org. Or local 80 to remote 2211 would make http://localhost work like http://www2.mydomain.org:2211.

 

So... did I describe what you want to do?

helllo dear requinix,

 

first of all - many many thanks  for the quick reply

 

 

 

well what i want to do is the following:

my friend adminstrates a server that i am having several websites on.

he installed webmin and now i need access on this webmin that is available here www2.myhost.org:6677

unfortunatley the dns does not resolve the ip adressbook

so my friend argued that we  have to port forward to the site... - in other words to tunnel my computer to the server.

i am on opensuse 13. 1 and have enabled ssh
furthermore i have installed putty.


well i  can run things from command line.

eg, run ssh for port forwarding to a server:

this command is workin;

ssh -p123 -L 8899:127.0.0.1:2233 vhost@www2.myhost.org


but i get asked for the public key:

(ECDSA) to the list of known hosts. Permission denied (publickey).

well how to add the (public) key -

a either on command line or
b. run the above mentioned code on putty?

love to hear from you
 



some additional notes: i  run ssh for port forwarding to a server:
 
 this command is workin;

ssh -p123 -L 2233:127.0.0.1:2233 vhost@www2.myhost.org


hmm - regarding putty. Well i work with several mehtods - as often i can - this means that i want to try out several methods of tunneling:

a. with commandline
b. with puty - and last but not least with
c. filezilla -

port forward and tunneling can be done with several ways

so if you are familiar with putty- - i would be glad if you can say how i an go this way


background



well probably i am wrong and do not understand you correct  - but to explain the history of things a bit more

i have access to the server since years -

- with sftp and filezilla - so i am using a safe connection for years now. - the sftp uses a pub-key which is stored on the target computer.
- since i have trouble in accessing the webmin on the target machine (issues of dns resolving of acresses like the following dslb-167-006-031-008.174.007.pools.vodafone-ip.de  - my admin assumes that the "-"signs were causing the issues - we sent a bug  report to the bug-team of webmin)

now - i try to port forward and get tunneled to the server
-note; i assume that i can use the pub-key wich is allready in use. Can ´t i?

if so - then i only need to take this key as authorized_keys file.



question: can i do this


if i have to explain more - just let me know.
 

unfortunatley the dns does not resolve the ip adressbook

You say it's a DNS problem but it sounds more like a firewall, in which case yes you'll need an SSH tunnel. (If it really is a DNS issue then that's easily addressed and you don't need a tunnel.)

 

this command is workin;

 

ssh -p123 -L 8899:127.0.0.1:2233 vhost@www2.myhost.org

 

 

but i get asked for the public key:

 

(ECDSA) to the list of known hosts. Permission denied (publickey).

 

well how to add the (public) key -

man ssh
There's a -i option where you give the path to your key file. If you don't have it then ask the friend for it, who can also help get you connected to the server.

 

b. run the above mentioned code on putty?

PuTTY? That's just a GUI for SSH - you still have to provide the same information, port forwarding configuration, and SSH key. Edited by requinix
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.