Vim not working without sudo via ssh

I can no longer use vim on my server via ssh without the sudo prefix.

commands that failed silently (never end) :

touch foo # works fine: I do have writing permissions in that folder
vim foo # fail
vim # fail

everything works with :

sudo vim foo
sudo vim
2

1 Answer

Ok, here was the issue :

I was logged with ssh -Y option, which enable trusted X11 forwarding, as described in man ssh :

 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls (Debian-specific: This option does nothing in the default configuration: it is equivalent to “ForwardX11Trusted yes”, which is the default as described above. Set the ForwardX11Trusted option to “no” to restore the upstream behaviour.This may hange in future depending on client-side improvements.)

Connecting without that option solved it somehow.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like