You are not logged in.
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
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
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
It simply baffles me why it sometimes works and sometimes doesn't.
Offline
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
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.
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
are you terminating the initial successful connection correctly?
Offline
If it's timing out, I would guess that it may be a line issue and not the way sshd is set up.
Offline
are you terminating the initial successful connection correctly?
How do you terminate an successful initial connection correctly? Don't you just type 'exit'?
Offline
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
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
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!
Offline