Agent conversation with established ssh connection

Hi all,

I am in the process of installing various systems on a Linux system to create a blueprint for automation.
I am trying to get curser to establish an ssh connection and chat with me to work out the steps and react accordingly in case of errors.

Only once the ssh connection is established and I want to start, the connection is “interrupted” because a new “ section”? is probably started in the chat and the commands would then be executed locally on the notebook again.

I am almost certain that my scenario is not that unusual. Can anyone help me? What am I doing wrong?

i use cursor with servers all the time -

use the remote ssh connection to open a cursor workspace on your server
then you can chat on that server

note though that a local workspace is seen as separate from a remote - and therefore will have different chat history

if you want to work locally, just run commands locally via ssh:

ssh server "ls ~"

this will execute ls ~ command on the server.

if you are doing more advanced server config stuff then it may be better to script it with something like ansible.

My recommendation is, if you only want file edits and directory listings, to use SSHFS for Windows instead

Thank you, I took another look at it and now it works.