Solved

ssh into Linux Ubuntu remotely

Posted on 2015-01-25
5
380 Views
Last Modified: 2015-02-12
A customer has the following set up:
- a Linux (Ubuntu) server (192.168.1.77)
- a VMWare virtual machine (192.168.1.75) hosted on the Linux server
- Windows Sever 2008 running on the virtual machine
- a BT Business Hub router (192.168.1.254)

At present I can RDP into the Windows Server 2008 VM remotely and from there I can PuTTy into the Linux server over the local network.

I can also remote in to the VMWare Control panel on
https://<server WAN IP address>:8333

The objective is to be able to PuTTy into the Linux server remotely, but without having to go via the VM.

In the router, port 22 and port 8333 are forwarded to the Linux server.

But when I try to PuTTy in to the Linux server remotely, the PuTTy window comes up but there is no login prompt, just a static cursor; and after a short while the connection times out.

Doing an internal (local network) port scan on the server shows that ports 22 and 8333 are open.
Doing the same scan but remotely, to the server WAN IP address shows port 22 closed and port 8333 open.

So what do I need to do to be able to open port 22 for remote  ssh access to the Linux (Ubuntu) server?
0
Comment
Question by:socross
  • 4
5 Comments
 
LVL 18

Assisted Solution

by:Peter Hutchison
Peter Hutchison earned 200 total points
Comment Utility
You might have some firewall rules on the server restricting access or that ssh only responds from certain subnets or ip addresse which may need to be modified to allow remote access. See https://help.ubuntu.com/community/SSH/OpenSSH/Configuring
0
 
LVL 1

Author Comment

by:socross
Comment Utility
Sorry, haven't had a chance to follow this up yet. Will get back to it asap.
0
 
LVL 1

Author Comment

by:socross
Comment Utility
I have tried temporarily disabling the firewall in the router, but it made no difference.

Please find attached the Linux server's current sshd_config file. I made one change from the original by adding the line:
GatewayPorts yes
But this made no difference (with or without the firewall in the router)

Can anyone shed any further light on this problem please?
0
 
LVL 1

Accepted Solution

by:
socross earned 0 total points
Comment Utility
This has now been solved. It turned out to be a combination of two things:

1) The static WAN IP of the remote server had actually been changed, unbeknown to me!

2) In the router there were too many instances of SSH applications being port forwarded. Reduced these to just one ( for PuTTY).

So thanks to Peter Hutchison, or his link on openssh, which was useful and informative, but not the route to a fix in this case.
0
 
LVL 1

Author Closing Comment

by:socross
Comment Utility
Sorry for effectively accepting my own solution, but hopefully it may prove useful to others.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now