image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old December 27th, 2000, 03:37 PM
Registered User
 
Join Date: Nov 2000
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
zpincus is on a distinguished road
I have run into a difficult situation here.

I am at home, many hundereds of miles away from my OS X box, which I have been administering remotely via ssh for the past few weeks.
I rebooted it a few times, to see if everything would work, and it did. The last time I checked uptime (yesterday) it was at about five days. So my machine should be just sitting there, displaying the login window...

Anyhow, today the machine no longer responds to ssh, scp, or ftp, all of which were functional as of yesterday.
This morning, I tried to log in to my machine over ssh, and got as far as entering my username and password. When I hit return after typing the password, I got no further response. Now, ssh doesn't even get that far, and just clams up while "making a connection." I've tried NiftyTelnetSSH from home, as well as ssh from a solaris machine on campus.

My machine still responds to pings as fast as ever. The only abnormal things I did yesterday were "defaults write com.apple.dock orientation Right" to surprise myself when I got back, and running kmodstat a few times as root, to get a feel for how it works. (Just "sudo kmodstat"... I didn't even do a full su!)

Any ideas? Can kmodstat fark things up? I have heard tell of a memory leak in the TCP stack thingie -- does any one else know about this? Could that cause tcp daemons to freeze while leaving the machine responsive to pings? How might I fix this remotely (if at all?)

Also, I want to run a portscan, to see what remains open (and to see if anyone has perhaps hacked my box and opened other ports?) What's a good web portscanner? Are there other ways to find out if I've been infiltrated?

Any help at all would be much appreciated.

Zach
Reply With Quote
  #2  
Old December 28th, 2000, 04:43 PM
AdmiralAK's Avatar
Simply Daemonic
 
Join Date: Oct 2000
Location: Classified
Posts: 5,787
Thanks: 0
Thanked 0 Times in 0 Posts
AdmiralAK is on a distinguished road
?!?!?!

Interesting stuff...
ermmm.... is anyone else near the machine ?
......who uses the machine except you ???


and lastly....why ?! except for the obvious answer that u want access to your files lol :-p)


Admiral
__________________
<<------------------------------>>
Seid ihr bereit fuer Club Admiralty ????
Club Admiralty: Http://www.club-admiralty.com
Copyright 1996-present
Bonified Gadget Geek :-)
<<------------------------------>>
Reply With Quote
  #3  
Old December 29th, 2000, 01:07 AM
Registered User
 
Join Date: Nov 2000
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
zpincus is on a distinguished road
My OS X machine is in a locked dorm room. Only I have passwords, and telnet (though not ftp) is disabled.
Why do I remotely log in to it from home?

1) To retrieve project files (via scp) to work on at home.
2) To play with darwin. About 50% of my OS X exploration time takes place in the terminal, so remotely logging in still affords plenty of opportunities to learn...
3) I have a fast internet connection at school. I surf remotely on lynx on my OS X box, because it is faster than IE here at home. Ouch.

Anyhow, patpro offered these thoughtful suggestions on the macnn board, and I'll relay them, because they were so darn useful. Everyone should especially check out nissus, and audit their OS X security.
Quote:
about portscan, you should try AGNet Tools from your MacOS 9 : demo downloadable from http://www.wildpackets.com/ (oups they changed names....)

about ssh...hum, it sounds like you'll have to use a special remote device called "john Doe" to reboot your X box. To prevent (at least to try to) further problem try to set up a crontab that would attempt a connection of some kind (mail, ftp...) from your X box to another remote host to check TCP availability and would reboot the box after 2 or 3 connection error.

about security issues, if you have just ONE doubt, format and reinstall. Salvation is in virginity ;-), and try using Unix diagnostic tools from the X machine. Some of them check your environment for changes and mail you when non-temp files are changed
...
check http://www.nessus.org/ for example, you'll have to compile it without GUI support, but it should work as it as been designed with BSD in mind.
This guy's full of good ideas! Hey, anyone know how to set up a script that will reboot the machine if there are two or three TCP failures? I might be able to write a C program, but I'm not sure
1) How to do it in a simple script
or 2) How to interface C programs with shell commands.
Any thoughts?

Zach
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing login directory Blaqb0x Unix & X11 2 November 21st, 2002 10:10 PM
Change login directory for accounts Blaqb0x Mac OS X System & Mac Software 0 November 19th, 2002 08:13 PM
Yeah, Darwin! RacerX Unix & X11 0 April 28th, 2002 10:15 PM
file system crash, cannot login couzteau Mac OS X System & Mac Software 1 February 12th, 2002 11:24 AM
OSX apps constantly crash, quits to login screen paulsomm Mac OS X System & Mac Software 1 August 16th, 2001 07:08 PM


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


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.