Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange SSH problem!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Kimo
n00b
n00b


Joined: 02 Jul 2003
Posts: 44

PostPosted: Wed Mar 24, 2004 2:13 pm    Post subject: Strange SSH problem! Reply with quote

I have two gentoo boxes - one is headless.

When I am trying to ssh from the other gentoo machine, everything proceeds as expected, it asks for my password, I enter it and it appears to connect, but...

When I run pwd, or look at the directory listing, it is STILL at the local box!!

However, my prompts and colors changed to the configurations I have on the headless box!

I am stumped...Anyone more enlightened than I?
Back to top
View user's profile Send private message
at6
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2002
Posts: 78
Location: /dev/null

PostPosted: Wed Mar 24, 2004 2:38 pm    Post subject: Reply with quote

hi,

two possible reasons for this ssh failure.

-> your ssh server is not correctly configured?
(have you changed your sshd.conf? yes? remove your sshd.conf and reemerge ssh)

-> you've forgotten to include pty support in the kernel
(so the auth procedure works, but then everythings stops.
try to recompile your kernel with pty support.)

i think it's number 2 ;)

regards,

marc
_________________
debian: stable but lame! suse: unstable and lame! gentoo: stable and only 4 geeks!
Gadget tests!
Back to top
View user's profile Send private message
Kimo
n00b
n00b


Joined: 02 Jul 2003
Posts: 44

PostPosted: Wed Mar 24, 2004 2:51 pm    Post subject: Reply with quote

Ok - Thanks for the response -

About the pty support - Would this manifest itself in other ways as well?

I am able to ssh to the headless box using PuTTY from windows 2000, no problems at all.

Therefore I am assuming that I need to look at pty support in the kernel on the CLIENT machine?

Is this correct?

Thanks!!
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Wed Mar 24, 2004 3:13 pm    Post subject: Reply with quote

are you absolutly sure you'r seeing the directory structure of the heady box not the ehadless? try doing the ssh, then touch test then exit. Now can you see test?

Could just be that you are sshing into the same directory that you are in when you ssh.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
Kimo
n00b
n00b


Joined: 02 Jul 2003
Posts: 44

PostPosted: Wed Mar 24, 2004 3:55 pm    Post subject: Reply with quote

I don't have access to it now, but I will try when I get home - However, I am fairly certain.

(if I am wrong, well, then I'll be very embarrassed! :oops: )
Back to top
View user's profile Send private message
Kimo
n00b
n00b


Joined: 02 Jul 2003
Posts: 44

PostPosted: Thu Mar 25, 2004 2:03 pm    Post subject: Reply with quote

Ok I checked it -

I remain on the one box.

For example, If I start at Euclid, and I ssh to aristotle, I would expect to be on aristotle after the ssh, but no...My colors change, but I am still

<username>@euclid$

Like I said, PuTTY works fine.

I re-emerged ssh for good measure, etc-update, overwrote config, no change. I get NO error messages.

Any ideas?

Jamie
Back to top
View user's profile Send private message
Sir_Chancealot
n00b
n00b


Joined: 08 Jan 2004
Posts: 63

PostPosted: Fri Mar 26, 2004 2:51 am    Post subject: Reply with quote

Kimo wrote:
Ok I checked it -

I remain on the one box.

For example, If I start at Euclid, and I ssh to aristotle, I would expect to be on aristotle after the ssh, but no...My colors change, but I am still

<username>@euclid$

Like I said, PuTTY works fine.

I re-emerged ssh for good measure, etc-update, overwrote config, no change. I get NO error messages.

Any ideas?

Jamie


Have you tried SSHing into aristotle through PuTTY, then SSHing into Euclid to see if that works? Then try using PuTTY into Euclid, then SSHing into Aristotle. Second, are the accounts seperate, i.e., the servers are not using LDAP/NIS, etc? The reason I ask is that I know on MS and Novell networks, you can authenticate to one server, but it can bounce you to another server for your actual connections. I don't know enough about LDAP/NIS, et. al, to know if that is possible. But at least I've given you several more troubleshooting approaches to help you narrow down the problem. Also, try SSHing into the machines using a different account than the one you have been using.

My instinct tells me the problem is on Euclid, but that is just a hunch.
Back to top
View user's profile Send private message
converter
Apprentice
Apprentice


Joined: 24 Dec 2002
Posts: 163

PostPosted: Fri Mar 26, 2004 12:49 pm    Post subject: Reply with quote

Try increasing client verbosity:

Code:
$ ssh -v remotehost


The more v's, the more info is dumped to the terminal. If -v doesn't reveal anything, try -vv, -vvv and so on.
_________________
converter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum