I need to get putty working with xforwarding I am getting the following error
Authenticating with public key "imported-openssh-key"
Last login: Sun Nov 1 17:14:22 2015 from -------------
/usr/bin/xauth: file /home/myusername/.Xauthority does not exist
What are you doing?
You can open xterm and then sudo.
gheist
It does not work like you imagined.
Running X11 programs as root is very insecure.
You should read "sudoers" manual page on how to preserve $HOME over sudo.
Let me repeat - this venture is really insecure
And you should not automate anything in this regard ever.
gheist
Why not A grade for explaining that there is no problem, it is just how Linux works?