Solved

Enable SSH on Debian-Lenny Server

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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