Solved

Enable SSH on Debian-Lenny Server

Posted on 2009-05-20
4
5,750 Views
Last Modified: 2013-12-06
I am trying to allow a consultant access to my Debian Server and am a Linux newbie.  I am unable to access the server from outside the network using SSH.  I have two firewalls between the server and the outside.  I have created an inbound service on the main firewall directed to the ip of the second firewall.  Then on the second firewall I have allowed the ssh access to the internal ip of the server.  Do I need to do something with NAT at the main firewall or do I need to configure the Linux Server to allow access from outside IP's?
0
Comment
Question by:john6216
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 24435192
Hi,

First of all you should check if SSH is running over the Debian BOX. The easiest way is using SSH over the box. Go to a comamnd prompt and type:

# ssh localhost

See if you can get a prompt. If now it seems that SSH is not working on your Debian box. In this case try this command:

/etc/init.d/ssh restart

This will restart if it is installed. If not try tthis command to install it:

apt-get install ssh openssh-server

Cheers,
K.
0
 

Author Comment

by:john6216
ID: 24435360
I was able to open a ssh session locally using the command;
# ssh localhost

I tried the command:
/etc/init.d/ssh restart
and recieved this message:
Restarting OpenBSD Secure Shell server: sshd.
Does this shed any light?  Thanks for your attention with this.
0
 

Author Comment

by:john6216
ID: 24444401
I figured it out SSH was being blocked from the DSL modem.  I will award some points for the help.

Thanks
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24445865
Yup in fact it always helps to check
- if it is locally accessible? If it is the daemon is working
- is accessible form the same lan ? If it is it means that both the firewall is allowing SSH and network setup is OK
- IS it accesible from outside? If not it might indicate that
    - Reverser not is not set-up
    - Firewall is preventing it
    - Default gateway definition on SSHD Server might be  wrong (since we know that it is accessible inside)

Cheers,
K.
 
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

21 Experts available now in Live!

Get 1:1 Help Now