LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-24-2007, 01:43 AM   #1
infiniphunk
LQ Newbie
 
Registered: Sep 2005
Location: Thunder Bay ON
Distribution: Slackware,Zenwalk,Ubuntu
Posts: 20

Rep: Reputation: 0
ssh troubleshooting hosts dyndns


Hello, I recently changed a server here at home from OpenBSD to zencore linux; normally I run pure-ftpd, sshd, httpd just to muck around, I'm in school learning to get my technician diploma. before when I had openbsd on it I had no problem ssh'ing to it from school, and from there to my main desktop and other server. after a power failure/electrical storm, my linksys router got fsckd and well, I had problems...lost 126 days uptime on it...after everything working nice...
Long story short, decided to try Zen-core 4.2 as a server for my main box, which I use mainly (only) for learning C++ for my class at school. I even gave my instructor at the college an acct on it so he could interact with me and maybe give me some direction in learning C in a gnu/linux / unix environment. Anyway, after the storm, I migrated the server over to Zenwalk and since then have been trying to get things back to normal. thus:

It's a PII running zenwalk core (previously openbsd) also acting as ftp server (with pure-ftpd) and open to the internet. on my inside network, I run a AMD k-6 with openBSD 4.0 as a file-server, using nfs to feed files thru a user acct to the zenwalk server.
The weirdest thing that I cannot figure out is, I can ssh to both servers from my LAN (ie: from my main desktop {ubuntu } but I cannot ssh to this box from school...or my parents house...or anywhere
Any ideas? I'm stumped...I've tried to troubleshoot this one, have read man-pages, googled around, and can't find any answers that help!
can YOU help me???


thanks,

Jerome
 
Old 03-24-2007, 03:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you've not said anythign about the topology of the network you are using. offhand i'd assume you're on a private LAN which isn't accessible from outside of it... if so you'd need to request port forwarding from an internet accessible device, which i'd assume is nevefr going to happen from the scenario you've described.
 
Old 03-24-2007, 01:27 PM   #3
infiniphunk
LQ Newbie
 
Registered: Sep 2005
Location: Thunder Bay ON
Distribution: Slackware,Zenwalk,Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
I DO have port-forwarding enabled on the router for it; this has not changed. I've always been able to log in from all kinds of places, parents house, gf's house, school, etc etc, its just suddenly that I can no longer do so! I'm 100% positive I have port 22 and 21(for ftp, which does work). It's just ssh. I'm tempted to change /etc/ssh/sshd-conf to a port# other than 22 just to see if that's it. Any other ideas??
Thanks

Jer
 
Old 03-24-2007, 01:36 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
on the ssh server run tcp dump and look for the incoming packets, e.g. "tcpdump -nv port 22" and try to connect... if you see any packets on the server, port forwarding is preaumbly ok, if not, it's not.
 
Old 03-25-2007, 02:54 PM   #5
infiniphunk
LQ Newbie
 
Registered: Sep 2005
Location: Thunder Bay ON
Distribution: Slackware,Zenwalk,Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Alright, what I really think happened here is that my linksys router got fried last week as a result of a power-failure/surge recently. Talking to a couple other locals in the last 48 hours has sorta confirmed that.
darn
 
  


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
cannot ssh from some hosts greengear Linux - Networking 9 01-29-2006 02:48 AM
Accespting SSH connections from other hosts halfcan Linux - General 4 02-20-2005 03:59 PM
ssh and /etc/hosts.all & deny tebucky Linux - Security 8 01-27-2005 05:23 PM
Virtual Hosts with Dynamic IP and dyndns.org lexton Linux - Networking 1 08-11-2004 04:06 AM
SSH hosts.deny file WoodyH Linux - Security 1 10-11-2003 07:44 AM

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

All times are GMT -5. The time now is 10:28 PM.

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