Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-16-2006, 04:33 PM
|
#1
|
Member
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463
Rep:
|
sshd: connections times out with putty
Howdy there,
I have set up sshd (OpenSSH) in both PCLinuxOS using the PCLInuxOS Control Center and in Slackware 11.0. I have a domain name from Dynamic DNS ( www.dyndns.com) and computer names set up on both installations.
I can log in to each from the machine itself, for example:
ssh joel@xxx.xxx.com
and I connect successfully. Of course, I check /var/log/messages and it says the connection is coming from 127.0.0.1 (because it is).
Now, I have not set up any RSA keys or anything like that -- all the tutorials I've found sound rather contradictory -- it seems like I'd have to connect in order to set up the keys, but I can't connect without setting up public/private keys. Please tell me I'm wrong about this.
Also, I have not added "AllowUsers" or "AllowGroups" or any other camel-cased options in the configuration file: I have not edited the configuration files at all.
The problem is that when I've tried to ssh in using PuTTY on two separate Win$uck machines and ssh from the command line in OS X, I get time-outs.
Is anyone aware of tutorial for a server-newbie?
Thanks,
Joel
|
|
|
12-16-2006, 04:34 PM
|
#2
|
Member
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463
Original Poster
Rep:
|
Oh, one more critical piece of information: I'm behind a router -- sharing a connection with the landlord upstairs (with his permission, of course).
Thanks,
Joel
|
|
|
12-16-2006, 05:26 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well you don't say where you're sshing in from, but i'd assume you mean elsewhere on the internet? you need to use portforwarding on the router you are getting your connectivity through, as the ip address being pointed at is the router, not your actual PC, so the router needs to know where to redirect the connection attempts to when it recieves them. http://www.portforward.com is a great site for that sort of configuration info.
|
|
|
12-16-2006, 09:18 PM
|
#4
|
Member
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
well you don't say where you're sshing in from, but i'd assume you mean elsewhere on the internet? you need to use portforwarding on the router you are getting your connectivity through, as the ip address being pointed at is the router, not your actual PC, so the router needs to know where to redirect the connection attempts to when it recieves them. http://www.portforward.com is a great site for that sort of configuration info.
|
Mr. Kewpie,
Yes, by saying "two other...machines and the command line in OS X" I mean from elsewhere on the internet (my office, to be specific).
The router is out of my jurisdiction -- it belongs to my landlord. Am I screwed for ssh from home?
Thanks,
Joel
|
|
|
12-16-2006, 10:59 PM
|
#5
|
Member
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Rep:
|
Quite possibly you are if the landlord won't forward the port for you. Occassionally routers are not set to block unprivileged ports. Try setting the ssh server to port 23000 or something equally high and ssh'ing using that port number.
|
|
|
12-17-2006, 04:10 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
that isn't going to help i'm afraid, you still need to port forward from the router to the machine, no where near caring about port numbers yet...
so no, unless you can get the router configured, you can not reach your machine from the internet. there is the possibility of a reverse ssh tunnel, where you connect out from your machine to an external endpoint and then connect to that machine, but that's much mor difficult and restrictive.
|
|
|
All times are GMT -5. The time now is 10:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|