LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-02-2022, 02:52 PM   #1
geoweaser
LQ Newbie
 
Registered: Jun 2022
Posts: 4

Rep: Reputation: 0
Botched TCP wrapper remotely; how can I connect? Haste is needed!


I am trying to help a colleague connect locally to a linux machine (I believe Debian), which uses TCP wrapper for security.

I ssh'd onto the computer and tried to give him access by clearing the contents of /etc/hosts.allow, but failed to make any changes to /etc/hosts.deny.

As a result, I can no longer ssh onto it, but get this error:
ssh_exchange_identification: read: Connection reset by peer

So... now we're both locked out. How can I access this computer? Or how can I instruct him to access it?

Thanks!
 
Old 06-02-2022, 03:07 PM   #2
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Did hosts.deny have any entries? By default, I think both hosts.allow and hosts.deny are empty, which I think defaults to allowing all hosts.

It sounds like you will need access to the physical host to which you cannot connect, and fix the configuration.
 
Old 06-02-2022, 03:23 PM   #3
geoweaser
LQ Newbie
 
Registered: Jun 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks. Unfortunately, there were some lines in hosts.deny, but I didn't clear them.

It seems that I'll not be able to connect remotely, but what are my options for a local connection? How can I (instruct my colleague to) connect if the TCP wrapper is blocking?
 
Old 06-02-2022, 03:37 PM   #4
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Couple of options:
1. (preferred) Boot the host into rescue mode from the boot menu.
2. Create a live USB of Debian/Ubuntu, etc. Boot from it, mount the root (/) partition of the host.

Then edit the hosts.deny file.
 
Old 06-02-2022, 03:39 PM   #5
geoweaser
LQ Newbie
 
Registered: Jun 2022
Posts: 4

Original Poster
Rep: Reputation: 0
OK. Thank you. There's no monitor to this box, but there is a serial connection that I will try to access.
 
Old 06-02-2022, 04:07 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
What type of hardware? Is this a regular desktop? Does it have some type of graphics card?

It depends. With a regular desktop typically if the system was not configured to use the serial port as a console then it is not an option.
 
Old 06-03-2022, 06:21 AM   #7
geoweaser
LQ Newbie
 
Registered: Jun 2022
Posts: 4

Original Poster
Rep: Reputation: 0
This is a field data acquisition system with a serial-based console connection. I just have to remember how to use it.
 
  


Reply


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
if there are 2 NIC on the same machine, can a tcp client on one NIC connect to a tcp esolve Linux - Networking 3 05-20-2013 02:16 PM
[SOLVED] TCP Wrapper and XINETD , can they work at the same time ? cryptoboss Linux - Security 3 04-15-2011 10:27 AM
Help! I botched LVM and botched most of system!!! Labyrinth Linux - Newbie 7 01-08-2008 04:50 AM
Botched nvidia driver leads to hellp needed desecrated Linux - Newbie 5 01-11-2005 11:01 AM
xinetd or tcp wrapper ? phoenix99 Linux - Security 2 08-15-2004 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:55 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