robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
168 stars 13 forks source link

[QUESTION] Setting up robotcode over remote ssh #222

Open Ktlist opened 4 months ago

Ktlist commented 4 months ago

Please describe. I'm trying to configure my setup to work over ssh to testing setup, i have been able to make work most of the plugins in the remote instance but RobotCode plugin

in the plugins section the "install in SSH:" button is present but it doesn't fully works:

  1. vscode asks for the remote ssh password
  2. prompt changes to "installing"
  3. there is not output in problems or output consoles
  4. after some time it returns to "install in SSH:"

Tried also installing it manually in the remote pc as local plugin but remote session doesn't seems to detect it

I don't know if I'm missing something and i haven't found any kind of guide to setup this specific case

Desktop (please complete the following information):

Noordsestern commented 4 months ago

Hi Ktlist,

thank you for bringing this up. We have not tried using VSCode with RobotCode and the Remote SSH extension.

To verify I understood you correctly: You are this Microsfot extension for developing on a remote host with VSCode+RobotCode, right?

Ktlist commented 4 months ago

correct, i'm using that extension to connect to remote PC The rest of extensions seem to work fine (I'm having similar problems as with robotcode with the autopep8 but that one is not as critical)

Ktlist commented 4 months ago

Update:

I have spent all day but I found if not a solution a workarround:

I have managed to make it work only using sshkey authentication

(this might be only my case): the user i was using to authenticate was admin in the target PC (also is different user than the my own, a faceless account) i had to add the key to the "C:\ProgramData\ssh\administrators_authorized_keys"

what i extract form this is that either:

  1. the ssh user need admin privilege at the host system and using password authentication, vscode ssh extension, doesn't provide elevated rights
  2. if not needed admin privilege it at least must be using ssh key authentication

I can help in further debug the actual cause behind this if you want

d-biehl commented 4 months ago

RobotCode has not implemented anything that requires admin rights or the like, nor has it implemented any functionality that has anything to do with remote SSH execution. The whole thing is part of VSCode or the Remote Extension. I have used RobotCode in various constellations via SSH and in Docker and devcontainers and have never had any problems. Which is not to say that there are none. Have you looked at VSCode or VSCode Remote Extension to see if there are similar problems with other extensions? You mentioned autopep8, maybe there is already a solution?

https://github.com/microsoft/vscode-remote-release/issues https://github.com/microsoft/vscode

d-biehl commented 2 months ago

any news about this issue/question?