Link to home
Start Free TrialLog in
Avatar of john6216
john6216

asked on

Enable SSH on Debian-Lenny Server

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?
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of john6216
john6216

ASKER

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.
I figured it out SSH was being blocked from the DSL modem.  I will award some points for the help.

Thanks
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.