View previous topic :: View next topic |
Author |
Message |
Oo.et.oO Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/d02574e23ddd3571372ea.png)
Joined: 23 Apr 2002 Posts: 291 Location: burlington
|
Posted: Fri Jan 28, 2011 12:10 am Post subject: X11 forwarding fails when SSH using key auth and afs home |
|
|
Hi.
if it's at all possible i always ssh into remote servers using key authentication.
but on some servers this can present a problem. on these my remote home dir is usually hosted on afs.
my local home is not, but i have the same afs directories mounted elsewhere and i manually klog to get tokens.
when i login to these remote hosts, however, my token obviously isn't forwarded, as i get lots of permissions errors before i klog manually on the other end.
this creates problems with Xauth:
Code: | /usr/bin/xauth: timeout in locking authority file /afs/mycell/u/myuserid/.Xauthority |
i have tried sshing in using -1 and -2 but neither worked. i could fool around with forwarding my afs token. but is there a better way?
basically i just want to get X11 forwarding to work, and i can't. even if i manually set the DISPLAY and xhost+ on local end.
forcing keyboard/password authentication works, in this case. but in some that won't work as the passwd file doesn't get updated enough (to have my current afs passwd in there and i can't login interactively). i can force password auth on by doing: Code: | ssh -o PreferredAuthentications=keyboard-interactive,password server |
thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Oo.et.oO Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/d02574e23ddd3571372ea.png)
Joined: 23 Apr 2002 Posts: 291 Location: burlington
|
Posted: Thu Mar 31, 2011 6:35 pm Post subject: |
|
|
argh. i still have this problem. actually i googled for a solution and ran across my own post!
anyone have any ideas?? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23103
|
Posted: Fri Apr 01, 2011 1:31 am Post subject: |
|
|
What if you login once with master mode disabled and X11 forwarding disabled then, without closing that connection, log in again with X11 forwarding? That would hopefully allow you to setup whatever tokens are needed using your first shell, then the X11 forwarding would be able to access the remote Xauthority in a timely manner. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
depontius Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 May 2004 Posts: 3526
|
Posted: Fri Apr 01, 2011 4:22 pm Post subject: |
|
|
Simple, but unfortunate - ssh does not pass afs or kerberos tokens. If you use password authentication and the right PAM setup, then it has its grubby mitts on a password that it can attempt to authenticate with afs/kerberos and can get a token. That makes it look transparent to you, even if it isn't really that way under the covers. But if you use key authentication, though you get box-level access, you have no token. Your X problems are simply an artifact of whether or not you have a token. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|