Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A possible solution for a hanging ssh login UNIX
If you cannot login any longer from your Mac user's shell account to a remote server with ssh, and ssh -vvv loginname@server is hanging at the following line...
debug3: Trying to reverse map address 192.168.73.23.
..then look cd into /tmp/.KerberosLogin-xxx-yyyyy, where xxx is your Unix user ID (typically 501 for the first user created on the machine), and yyyy is a random number. Once there, remove the file named KLLCCache.lock. Try again, and bingo. Hurray!

[robg adds: On my machine, these directories also have some text following their names -- (inited,gui,tty,local), for instance.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[10,068 views]  

A possible solution for a hanging ssh login | 5 comments | Create New Account
Click here to return to the 'A possible solution for a hanging ssh login' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
kdestroy
Authored by: ssevenup on Feb 13, '06 01:33:08PM

I have found that if I obtain a Kerberos credential and then find myself on another network where the the issuing agent is unreachable, then ssh will hang. I would think kdestroy would be a better way to manage this than trashing the files manually. This problem is apparent on both Panther and Tiger if I'm not mistaken. ssh needs an argument available that pulls Kerberos out of the equation.

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]
kdestroy works
Authored by: Jaharmi on Feb 17, '06 04:11:27AM

I had an expired Kerberos ticket after taking my work laptop home. When I used Destroy on that expired ticket in the Kerberos application (much easier to get to when you use LaunchBar, by the way), I was able to log in via SSH to a server at work. My laptop is bound to an Active Directory, and the domain controllers (and thus the KDC) are inaccessible from outside my office network.

Prior to that, I was unable to log in and the process would hang just where the original poster mentioned, when I was displaying progress with ssh -vvv.

This has been driving me nuts for a long time -- since at least the time Tiger debuted in April 2005.

I tried mv-ing the KLLCCache.lock file in the Kerberos tmp directory for my account, but my Terminal session became unresponsive while trying to do it. I thus gave up and moved to Mark's suggestion of using kdestroy.



[ Reply to This | # ]
A possible solution for a hanging ssh login
Authored by: ynolo on Feb 13, '06 03:18:23PM

anyone know how this can be done for ftp?

---
i don\'t have one



[ Reply to This | # ]
A possible solution for a hanging ssh login
Authored by: Rainy Day on Feb 13, '06 04:40:18PM

It would be unwise to allow FTP access to your Mac (for anything other than anonymous access). FTP sends your password in the clear, so someone could easily discover your username and password the first time you use it. Use SSH instead!!!



[ Reply to This | # ]
A possible solution for a hanging ssh login
Authored by: regulus on Feb 13, '06 07:02:11PM

This solution didn't work for me. But after searching this site I came across a thread that did work. Just do as the original poster suggests in this thread...

http://www.macosxhints.com/article.php?story=20050329185832952&query=debug3%3A+Trying+to+reverse+map



[ Reply to This | # ]