View previous topic :: View next topic |
Author |
Message |
gen2newB Apprentice

Joined: 23 Sep 2003 Posts: 150 Location: Fall River, MA.
|
Posted: Tue Sep 23, 2003 7:23 pm Post subject: silly ssh problem |
|
|
Please bear with me, this is my first time posting here.
My problem is that i can not ssh into my gentoo box from my win2k laptop that work gave me. Now before you say its win2k, i used the laptop to install the major part of it at home on my private LAN. I did change the password using "passwd root" so i know its not the password or the fact that its not able to accept connections. I used a small ssh client for windows to do it with and it worked fine. My problem is that i cant do the same from work. I have a router with NAT on and it is setup to passthrough port 22 to the correct ip address. I was wondering if the fact that right now, my computer is in a chroot environment as it sits there, and that i did not start up sshd in the chroot environment. Wierd thing is that i try to connect to the box, and it says connected, but nothing shows up. Please Help!!! |
|
Back to top |
|
 |
slais-sysweb Apprentice


Joined: 14 Jun 2002 Posts: 221 Location: London
|
Posted: Tue Sep 23, 2003 9:29 pm Post subject: Re: silly ssh problem |
|
|
gen2newB wrote: | My problem is that i can not ssh into my gentoo box from my win2k laptop that work gave me.
i used the laptop to install the major part of it at home on my private LAN.
I did change the password using "passwd root" so i know its not the password or the fact that its not able to accept connections.
I used a small ssh client for windows to do it with and it worked fine.
My problem is that i cant do the same from work.
I have a router with NAT on and it is setup to passthrough port 22 to the correct ip address.
I was wondering if the fact that right now, my computer is in a chroot environment as it sits there, and that i did not start up sshd in the chroot environment. Wierd thing is that i try to connect to the box, and it says connected, but nothing shows up. Please Help!!! |
Not quite sure if I understand what you are doing but, as I understand you:
Your Gentoo install is at home on your network
You were able to ssh into Gentoo install from another machine on your home network
You are trying to connect to the gentoo box on your home network from another location (work)
You have a router with port forwarding on your home network: this is forwarding port 22 (ssh) to the NATed address of the gentoo box.
1) re chroot. If you succeed in logging in you will not be in the chroot enviroment. On logging in remotely you will need to do the
Code: | cd /mnt/gentoo
chroot | bit of the install again. But it should be possible to log in via ssh.
You dont say which ssh client you are using (putty?) If you have used the same laptop at home it has probably saved the ip and key used on your home network. As the of your gentoo box viewed from outside is NATed the ssh client may refuse to connect -- however you should get a warning of this and an opportunity to connect anyway.
The passwd used for root will be the one set before chrooting, (see above you are not sshing direct into the chroot enviroment. However if the password is bad you should be getting an error to that effect.
Recently I have noticed ssh into gentoo can be very slow (something to do with pam I understand and possibly fixed by the latest GLSA) perhaps it is timing out somewhere?
I am not sure I this helps _________________ --
djc
sysweb SLAIS UCL |
|
Back to top |
|
 |
Purrkur Apprentice


Joined: 16 Jun 2003 Posts: 202 Location: Stockholm
|
Posted: Tue Sep 23, 2003 9:36 pm Post subject: |
|
|
You say that it worked fine when you had your laptop connected at home to your home network, but you cannot log in from work, even though you have port-forwarded port 22 to the Gentoo machine.
However, and correct me if I am wrong here, you mention not having started sshd in your chrooted environment. Is it fair to say that when you were working with your laptop at home that you were not connecting to the same chrooted environment? Because if that is the case then I guess that is your problem. _________________ Punk is an attitude
not a fashion style |
|
Back to top |
|
 |
gen2newB Apprentice

Joined: 23 Sep 2003 Posts: 150 Location: Fall River, MA.
|
Posted: Wed Sep 24, 2003 2:07 am Post subject: |
|
|
Purrkur, you are right, i didn't run sshd in the chroot. I thought that it would work like that, but i guess that is where the problem lays. Thanks guys. I actually wasnt using putty as my laptop is 2k. SO i got a freeware ssh client and it worked fine in the network, but got met with connection refused from work. |
|
Back to top |
|
 |
gen2newB Apprentice

Joined: 23 Sep 2003 Posts: 150 Location: Fall River, MA.
|
Posted: Wed Sep 24, 2003 11:02 am Post subject: |
|
|
ah wonderful. I go and try to log in this morning, this is after a reboot, and now its not working. I know i edited a few things in the LiveCD sshd config file and it worked, now i have no clue on what i did. I just want to remote admin from work straight out of the box =/. I edited the config file because it didn't work with the default config. Please help the newB |
|
Back to top |
|
 |
gen2newB Apprentice

Joined: 23 Sep 2003 Posts: 150 Location: Fall River, MA.
|
Posted: Wed Sep 24, 2003 11:09 am Post subject: |
|
|
sry guys, i just woke up. everything is good now. I will be going to work soon, so hopefully i can try it when i get there. |
|
Back to top |
|
 |
|