Maze Posted November 25, 2014 Share Posted November 25, 2014 how to arrange a port forward via ssh-tunneli need to do that on a domain with this syntaxhttps://www2.mydomain.org:2211/i am on opensuseguess that i firstly have to activate the ssh Quote Link to comment https://forums.phpfreaks.com/topic/292706-arrange-a-port-forward-via-ssh-tunnel-on-www2mydomainorg2211/ Share on other sites More sharing options...
requinix Posted November 25, 2014 Share Posted November 25, 2014 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? Quote Link to comment https://forums.phpfreaks.com/topic/292706-arrange-a-port-forward-via-ssh-tunnel-on-www2mydomainorg2211/#findComment-1497679 Share on other sites More sharing options...
Maze Posted November 28, 2014 Author Share Posted November 28, 2014 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:6677unfortunatley the dns does not resolve the ip adressbookso 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 sshfurthermore 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.orgbut 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 orb. run the above mentioned code on putty?love to hear from you Quote Link to comment https://forums.phpfreaks.com/topic/292706-arrange-a-port-forward-via-ssh-tunnel-on-www2mydomainorg2211/#findComment-1497950 Share on other sites More sharing options...
Maze Posted November 29, 2014 Author Share Posted November 29, 2014 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 commandlineb. with puty - and last but not least withc. filezilla -port forward and tunneling can be done with several waysso if you are familiar with putty- - i would be glad if you can say how i an go this waybackground well probably i am wrong and do not understand you correct - but to explain the history of things a bit morei 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 thisif i have to explain more - just let me know. Quote Link to comment https://forums.phpfreaks.com/topic/292706-arrange-a-port-forward-via-ssh-tunnel-on-www2mydomainorg2211/#findComment-1497994 Share on other sites More sharing options...
requinix Posted December 1, 2014 Share Posted December 1, 2014 (edited) unfortunatley the dns does not resolve the ip adressbookYou 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 sshThere'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 December 1, 2014 by requinix Quote Link to comment https://forums.phpfreaks.com/topic/292706-arrange-a-port-forward-via-ssh-tunnel-on-www2mydomainorg2211/#findComment-1498210 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.