Solved

Enable SSH on Debian-Lenny Server

Posted on 2009-05-20
4
5,756 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to configure AT&T Netgate with Sonicwall Firewall 24 44
Sonicwall Web User login Redirect 9 48
Hardening ScreenOS 8 102
Mysql Crashing Intermittently 16 83
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

26 Experts available now in Live!

Get 1:1 Help Now