Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th May 2011, 15:10
ihsir ihsir is offline
Junior Member
 
Join Date: May 2011
Posts: 10
Thanks: 5
Thanked 1 Time in 1 Post
Post TPS-Ubuntu 11.04[ISPConfig 3] - questions about network and SSH

Hello Falko,

I have followed your tutorial on how to forge for setting up the Perfect Server & want to let you know that so far it is great! In between, I took a sidestep to run vimtutor to brush up on the needed vi skills/shortcuts to be able to create and edit the different files.

My system name is ubuntuServer.tampabay.rr.com and I set all of the IP addresses the same as you did in Step 7 - Configure the network.
I've been interested in setting up SSH and VNC at home, but haven't done it yet. I've got the Server (which is a dual boot with XP Home / Ubuntu Server 11.04) and an iMac with Snowleopard. I've got a Linksys Router (Wireless G), but the server is plugged directly into it, the Mac is connected through Airport.

On step 5 though, you mention that we are able to use PuTTY to connect to the server (via SSH) and enter all the commands. I'm at work now and downloaded PuTTY, opened it, and in the Host name, I put "ubuntuServer.tampabay.rr.com". I tried the port as both 80 (and 22) and tried connecting, but I was unable to connect.
  1. Do I need to connect from inside the home network?
  2. If so, how can I do it from the Mac? I tried using SSHTunnel and Terminal, but I'm not sure if I'm doing it correctly.
  3. How can I connect to it from outside of the home network?
  4. My ISP provider, Brighthouse, is dynamically providing me the IP address. I'm confused as to whether I will still need a tool like DynDNS to keep the IP address synced online, or if step 7 was the solution for that (or if it was only to keep the server IP within the network static).

Can you please clarify, or point me in some direction where I can find this information? Everything I've found so far seems to assume that the user already knows it.


Thanks again for the wonderful tutorial!
Reply With Quote
Sponsored Links
  #2  
Old 18th May 2011, 13:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

First make sure that SSH is running on the server. You can check that with
Code:
netstat -tap
If you use a firewall, make sure that port 22 is open.
If you connect from outside your network, you must configure your router to forward port 22 to your server.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
ihsir (21st June 2012)
  #3  
Old 20th May 2011, 04:15
ihsir ihsir is offline
Junior Member
 
Join Date: May 2011
Posts: 10
Thanks: 5
Thanked 1 Time in 1 Post
Default TPS-Ubuntu 11.04[ISPConfig 3] - questions about network and SSH

Hi Falko,

Sorry for the late response, but I've been having some trouble with the server. I tried installing a GUI (apt-get install ubuntu-desktop) thinking that it would be helpful, but I started getting lots of errors. I did some reading on it and found out that Gnome doesn't play well with Natty.

I redid the installation from fresh. Twice, because I was still getting errors the last time.

I just did it again and have reached step 6 in the tutorial (where you said that you can start using PuTTY or some other SSH client).

I mucked around with the router and was able to get to the Port Range Forwarding section, but I am not sure if I did it correctly. Since the iMac is hooked up to the network at home, I am trying to connect with SSHTunnelManager, but there, also, I'm not sure if I'm doing it correctly. Please see the screen shot and let me know if you see anything glaringly wrong.

Also, since the router is limiting my choice of IPs to forward to (only the last digit can be modified), does that mean that when I reach step 7 I'll have to use that IP instead of the one you have in your example (e.g. 192.168.1.x vs. 192.168.0.100)?

Oh, and on this fresh install, when I do "netstat -tap" I'm seeing two different SSH items listening:
tcp | 0 | 0 *:ssh | *:* | LISTEN | 906/sshd
tcp6 | 0 | 0 [::]:ssh | [::]* | LISTEN | 906/sshd

Is this correct?


Thank you!
Attached Images
 
Reply With Quote
  #4  
Old 20th May 2011, 13:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by ihsir View Post
Also, since the router is limiting my choice of IPs to forward to (only the last digit can be modified), does that mean that when I reach step 7 I'll have to use that IP instead of the one you have in your example (e.g. 192.168.1.x vs. 192.168.0.100)?
Yes, you have a different subnet, so you must use 192.168.1.x addresses.

Quote:
Originally Posted by ihsir View Post
Oh, and on this fresh install, when I do "netstat -tap" I'm seeing two different SSH items listening:
tcp | 0 | 0 *:ssh | *:* | LISTEN | 906/sshd
tcp6 | 0 | 0 [::]:ssh | [::]* | LISTEN | 906/sshd

Is this correct?
That's ok - the first line is for IPv4, the second one for IPv6.

The screenshot of the router configuration page looks good as well (as far as I can see, it's a little bit small).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
ihsir (21st June 2012)
  #5  
Old 21st June 2011, 18:17
ihsir ihsir is offline
Junior Member
 
Join Date: May 2011
Posts: 10
Thanks: 5
Thanked 1 Time in 1 Post
Default Port Forwarding question

Hello Falko,

I brought home a Windows 7 laptop from the office with PuTTY on it and sat down last night to get this to work.
When I logged into the server, I noticed the IP address it had listed right upon login: 192.168.1.103 (See screenshot).

I then went in PuTTY and entered this IP address and was able to connect successfully!

I changed the SSH port forwarding in the router to also be 103 for port 22 (see screen shot).

I assume that if I want to be able to pull up Squirrel mail and ISP config from a computer outside of the LAN, I'll have to allow port 80 (or 8080) to forward to 103 as well, correct? Is this an unsafe practice? Generally, what is considered standard/okay/best practice in port forwarding?


Thank you very much for all the help thus far!
Attached Images
  
Reply With Quote
  #6  
Old 22nd June 2011, 13:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by ihsir View Post
I assume that if I want to be able to pull up Squirrel mail and ISP config from a computer outside of the LAN, I'll have to allow port 80 (or 8080) to forward to 103 as well, correct?
That is right.

Quote:
Originally Posted by ihsir View Post
Is this an unsafe practice? Generally, what is considered standard/okay/best practice in port forwarding?
No, this is a common practice, and it is not unsafe - think of all the servers that use ISPConfig and are in data centers (i.e., not in a local network).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
ihsir (21st June 2012)
Reply

Bookmarks

Tags
isp config 3, network, perfect server, ssh, ubuntu 11.04

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict ssh local network discovery nopsx General 1 19th February 2011 16:26
ssh stop answering requests mdk Server Operation 7 20th January 2009 19:56
Unlock A LUKS Encrypted Root Partition Via SSH On Ubuntu - cannot log in flapjack HOWTO-Related Questions 8 6th January 2009 13:40
Perfect Setup Ubuntu 7, SSH Question chez17 Installation/Configuration 8 28th July 2007 10:18
Ubuntu Server Installation Questions jacobrich Installation/Configuration 13 15th January 2006 18:36


All times are GMT +2. The time now is 12:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.