LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2010, 06:19 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
Question startkde error using "ssh -X"


I want to use '-X' to access GUI from remote. I can connect to the server but I get error that authentication failed. I don't understand, if I logged into the server why I get authentication error.

Code:
mahmood@host:~$ ssh -X mahmood@server
mahmood@server's password: 
Linux server 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010 i686 GNU/Linux
Ubuntu 10.04.1 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

Last login: Sat Jul 31 15:37:31 2010 from 217.218.145.231
/usr/bin/xauth:  error in locking authority file /home/mahmood/.Xauthority
mahmood@server:~$ startkde
X11 connection rejected because of wrong authentication.
$DISPLAY is not set or cannot connect to the X server.
mahmood@server:~$
 
Old 07-31-2010, 06:37 AM   #2
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
Your server-side ssh daemon does not allow X11 forwarding. You have to edit /etc/ssh/sshd.conf accordingly.

But for starting a full remote X session, there are better solutions, for example using XDMCP (kdm supports it, try google) or VNC or XRDP if you want to be able to detach and background the remote session (the latter is perfect if you want to use a windows client without installing extra software).
 
Old 07-31-2010, 07:02 AM   #3
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
>Your server-side ssh daemon does not allow X11 forwarding. You have to edit /etc/ssh/sshd.conf accordingly

which line should I edit?
 
Old 08-01-2010, 09:14 AM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
do you have xauth installed on the remote side?
 
Old 08-01-2010, 01:33 PM   #5
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Yes
Code:
mahmood@localhost:~$ dpkg -L xauth
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/xauth
/usr/share/doc/xauth/copyright
/usr/share/doc/xauth/changelog.gz
/usr/share/doc/xauth/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/xauth.1.gz
/usr/bin
/usr/bin/xauth
 
Old 08-02-2010, 09:58 PM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
well you could try deleting you ~/.Xauthority file and then try sshing in again
 
Old 08-03-2010, 02:22 AM   #7
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Ok I will try
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 01:16 PM
Regular expression matching , match "error string" but not "other error" jmcmillan Programming 3 07-07-2008 09:50 AM
How to start KDE automaticlly without typing "startx" then "startkde" Jonescity Slackware 8 10-29-2004 09:32 PM
"startkde" in Gentoo gives errors sienarot Linux - Distributions 8 09-25-2003 04:02 PM
Error on "make install" with SSH SammyK Linux - General 7 09-25-2003 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration