robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[QUESTION] Setting up robotcode over remote ssh

Open Ktlist opened this issue 1 year ago • 5 comments

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):

  • VS Code Version: 1.86.1
  • RobotCode Version: 0.75.0
  • OS: Local: Windows, Remote: Windows
  • Python Version: 3.10
  • RobotFramework Version: 6.0.2

Ktlist avatar Feb 16 '24 08:02 Ktlist

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?

Noordsestern avatar Feb 16 '24 12:02 Noordsestern

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 avatar Feb 16 '24 13:02 Ktlist

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

Ktlist avatar Feb 16 '24 15:02 Ktlist

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 avatar Feb 17 '24 18:02 d-biehl

any news about this issue/question?

d-biehl avatar May 05 '24 19:05 d-biehl