Solved

ssh into Linux Ubuntu remotely

Posted on 2015-01-25
5
399 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 19

Assisted Solution

by:Peter Hutchison
Peter Hutchison earned 200 total points
ID: 40569439
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
ID: 40589172
Sorry, haven't had a chance to follow this up yet. Will get back to it asap.
0
 
LVL 1

Author Comment

by:socross
ID: 40590423
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
ID: 40595658
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
ID: 40605234
Sorry for effectively accepting my own solution, but hopefully it may prove useful to others.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

726 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