Y
Y
yeszhanov2017-04-02 00:10:18
linux
yeszhanov, 2017-04-02 00:10:18

How to connect to X11 using ssh key?

Hello. I have an ssh connection set up using the . In the config, I forbade connecting with a password. Now you need to connect to the server using X11. Everything is set up and working. But only with a password, but you need to connect with a key.
Suppose I connected to the server in this way: ssh -i /home/user/id_rsa [email protected]
When connecting to X11 with a password, I used this command: ssh -X [email protected]
But after I forbid login with a password, it says that Permission denied (publickey, gssapi-keyex, gssapi-with-mic). How to connect now?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2017-04-02
@yeszhanov

well, specify the path to the key, or move the key to ~/.ssh/id_rsa, then it will become default for all connections

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question