Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-26-2012, 05:18 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Question questions about SSH port forwarding

I'm fairly new to linux and I wanted a bit of professional clarification on a few things. The syntax of the ssh port forwarding I have been using is as follows.

ssh -f -N localhost -L

The questions I had are these...

1.) Am I issuing the command correctly or could it be improved?
2.) If I connect to port 80 is it suppose to be using ssl still? or do I have to use port 443?
3.) Why are some websites such as google redirecting me to
4.) Why am I receiving "Internal Server Error" when trying to connect to facebook?

Last question which isn't specific to linux if anybody could enlighten me.

5.) Is there any difference between typing or or or Is part of the same domain as
Old 04-26-2012, 08:16 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
5) most browsers assume you will want http unless you specify otherwise. 'www' is just a convenience hint for humans, its not required as part of a webserver's FQDN.
Also, a large company like google will actually have multiple massive webfarms and multiple equiv addresses and likely use re-directors etc (eg an F5 BigIp)
Old 04-26-2012, 09:19 PM   #3
LQ Newbie
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the clarification on that. Lets scratch 3 & 5 off the list. If anybody could clarify 1,2, & 4 it would be much appreciated.
Old 04-26-2012, 11:02 PM   #4
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Here is another port forwarding syntax given on this link, you can check.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Port number used by server when using dynamic port forwarding in SSH? kreeder Linux - Networking 4 11-21-2011 02:07 PM
port forwarding with ssh lothario Linux - Networking 1 06-19-2010 08:47 PM
Port Forwarding with SSH jeremy LQ Articles Discussion 2 03-14-2008 11:16 AM
ssh and port forwarding mezeq Linux - Networking 2 11-06-2006 01:29 PM
ssh, and port forwarding Tricky Linux - Networking 3 01-06-2003 07:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration