LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-12-2009, 09:25 PM   #1
SuperDude123
Member
 
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 http://http.us.debian.org/debian/poo...1p1-5_i386.deb

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 myserver.url.com closed by remote host.
Connection to myserver.url.com 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 10:22 PM.
 
Old 02-12-2009, 09:50 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
Example:
Code:
 telnet hpmedia 22
Trying 192.168.1.104...
Connected to hpmedia.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.0
 
Old 02-12-2009, 10:21 PM   #3
SuperDude123
Member
 
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?
 
  


Reply



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 10:42 AM
all software installs hang scroll lock and caps lock lights flash jcorrnt Linux - Hardware 6 02-07-2009 12:44 PM
Hard lock plus Caps and Scroll Lock flashing (kernel panic?) TiredOfThis Linux - General 4 12-11-2007 07:35 PM
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 10:40 AM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 AM.

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