Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-12-2009, 10:25 PM   #1
Registered: Nov 2008
Posts: 158

Rep: Reputation: 30
Did I just lock my self out????

Here's the prob:

I wanted to update my Damn Small Linux open ssh, so I found out what the url for the new .deb (its debian based) package is, downloaded it with the command

wget -c

then I did

sudo dpkg -i openssh-server_5.1p1-5_i386.deb

then came the sh*t storm:

Selecting previously deselected package openssh-server.
dpkg: considering removing ssh in favour of openssh-server ...
dpkg: yes, will remove ssh in favour of openssh-server.
(Reading database ... 10576 files and directories currently installed.)
Unpacking openssh-server (from openssh-server_5.1p1-5_i386.deb) ...
Stopping OpenBSD Secure Shell server: sshdConnection to closed by remote host.
Connection to closed

Now I can't connect to my system :S

I was doing everything through SSH from a remote location (different city), so how do I get in my system now? Do I need to make a call where the system is, get them to log in the system, and run SSH manualy? Did my sshd_config file get reprogramed in the process of this update? How deep am I here?

Last edited by SuperDude123; 02-12-2009 at 11:22 PM.
Old 02-12-2009, 10:50 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
The /etc/ssh/sshd_config file was probably replaced with the one from the package. Extract the file from the package and read through it. What changes does it make in the way you authenticate?

Also try to connect using telnet and see if you have a prompt. If not, the ssh daemon might not be running.
This is a quick way of finding out if a port is open & service is running.
 telnet hpmedia 22
Connected to hpmedia.
Escape character is '^]'.
Old 02-12-2009, 11:21 PM   #3
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
I got a connection refused when I tried to connect to the port that I had SSH running.

telnet: connect to address XXX.XXX.XX.XX: Connection refused
telnet: Unable to connect to remote host

Any other ideas?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 24 04-12-2019 11:42 AM
all software installs hang scroll lock and caps lock lights flash jcorrnt Linux - Hardware 6 02-07-2009 01:44 PM
Hard lock plus Caps and Scroll Lock flashing (kernel panic?) TiredOfThis Linux - General 4 12-11-2007 08:35 PM
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 11:40 AM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 11:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration