I am trying to update a script inside /etc/X11/Xstartup.d/00-myconf. It contains a command that works well when tested manually, but not in the script. This command uses a pair of RSA keys to ssh into a remote server.
ssh -i /var/subfolder/.ssh/id_rsa -o StrictHostKeyChecking=no specialuser@server "command"
Works well from the console, already logged as a student, but when I try to log via X11 I get a popup asking for specialuser password, which in turn triggers ksshaskpass to require a new wallet (we don't use them).
I can cancel the request and the session is finally opened, but it happens everytime a student tries to logon or logoff.
I hope you will give me some hints!
AddKeysToAgent
setting either in the client's global/etc/ssh/ssh_config
or the students'~/.ssh/config
? You can check by runningssh -G specialuser@server
as a student.-v
option on yourssh
command to get information on what's happening,-vv
to get more detail,-vvv
to be buried in detail.