You are not logged in.

#1 2009-04-15 20:03:53

djseomun
Member
From: Durham, NC
Registered: 2008-10-19
Posts: 35
Website

I can only ssh into my dorm computer every other time?

Mostly for a "hey, look at me, mom!" reason, I've been interested in being able to ssh into my dorm computer from a computer lab.

I followed the Wiki instructions on how to configure the ssh_config and sshd_config files, and I added sshd to the DAEMONS list in /etc/rc.conf.

I have successfully connected to my computer on Monday and earlier this afternoon. As "proof," I saved the following:

Last login: Mon Apr 13 13:30:34 2009 from [IP address of the computer lab]

However, after I log out and try to log back in, I get a

ssh: connect to host [IP address of my dorm computer] port 22: Connection timed out

Why does this happen?

Offline

#2 2009-04-16 16:45:42

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: I can only ssh into my dorm computer every other time?

Did you add the sshd daemon to the DAEMON list  (in  the file /etc/rc.conf)   ??

you can see if you have this daemon running by doing

ps -e | grep sshd

and start (or any other operation you want) it by doing

sudo /etc/rc.d/sshd start

Last edited by quarkup (2009-04-16 17:00:29)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#3 2009-04-16 17:50:41

djseomun
Member
From: Durham, NC
Registered: 2008-10-19
Posts: 35
Website

Re: I can only ssh into my dorm computer every other time?

djseomun wrote:

I followed the Wiki instructions on how to configure the ssh_config and sshd_config files, and I added sshd to the DAEMONS list in /etc/rc.conf.

Yes, I did smile

It simply baffles me why it sometimes works and sometimes doesn't.

Offline

#4 2009-04-16 18:20:39

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: I can only ssh into my dorm computer every other time?

djseomun wrote:
djseomun wrote:

I followed the Wiki instructions on how to configure the ssh_config and sshd_config files, and I added sshd to the DAEMONS list in /etc/rc.conf.

Yes, I did smile

It simply baffles me why it sometimes works and sometimes doesn't.

okay, I would scan the ssh server (your pc) to check it (using nmap -A -p 1-65535 <ssh_server>)

this would check all ports and tell what daemon/service is running there..

Then you should to see something telling about SSH daemon/server.
big_smile

Last edited by quarkup (2009-04-16 18:24:16)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#5 2009-04-16 20:14:27

bigjust
Member
Registered: 2009-04-16
Posts: 9

Re: I can only ssh into my dorm computer every other time?

are you terminating the initial successful connection correctly?

Offline

#6 2009-04-17 00:23:58

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: I can only ssh into my dorm computer every other time?

If it's timing out, I would guess that it may be a line issue and not the way sshd is set up.


neutral

Offline

#7 2009-04-20 16:18:44

djseomun
Member
From: Durham, NC
Registered: 2008-10-19
Posts: 35
Website

Re: I can only ssh into my dorm computer every other time?

bigjust wrote:

are you terminating the initial successful connection correctly?

How do you terminate an successful initial connection correctly? Don't you just type 'exit'?

Offline

#8 2009-04-20 16:19:24

djseomun
Member
From: Durham, NC
Registered: 2008-10-19
Posts: 35
Website

Re: I can only ssh into my dorm computer every other time?

sand_man wrote:

If it's timing out, I would guess that it may be a line issue and not the way sshd is set up.

If it is in fact a line issue, then is it beyond my control since I'm just a student and not in charge of university IT?

Last edited by djseomun (2009-04-20 16:19:37)

Offline

#9 2009-04-20 16:33:55

bigjust
Member
Registered: 2009-04-16
Posts: 9

Re: I can only ssh into my dorm computer every other time?

typing exit is the right way to terminate... I was just trying to rule out say "X-ing" out of a putty window and such, which I know used to cause problems.  I had the exact same problem your describing, but I can't for the life of me remember how I solved it.  I'm thinking it was some sort of a server-side config problem.  Hopefully it'll come back to me.

Last edited by bigjust (2009-04-20 16:34:32)

Offline

#10 2009-04-20 18:25:55

djseomun
Member
From: Durham, NC
Registered: 2008-10-19
Posts: 35
Website

Re: I can only ssh into my dorm computer every other time?

Thanks, I wasn't trying to be smart. (I should have clarified that.) I was actually thinking, "Oh [expletive]! Am I actually doing it wrong?"

I hope you can remember it, too! smile

Offline

Board footer

Powered by FluxBB