Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Enable SSH on Debian-Lenny Server

Posted on 2009-05-20
4
Medium Priority
?
5,839 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
[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
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 1500 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
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…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

636 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