1

Editing a file on a remote linux server via SSH and vim is something I usually do on a regular basis. Recently, I got on a new web project involving Microsoft technologies instead of the usual open source.

In a Microsoft environment, PowerShell seems like a quite efficient replacement for bash. It can connect on remote servers using the Enter-PSSession commmand. Unfortunately, it seems that this way of working is incompatible with text editors. Trying to open vim or edit is causing my remote session to hang everytime. I seems it reacts the same on every full screen shell app.

Is there a way to work around this else than installing SSH on Microsoft servers? It would be an awesome solution but I doubt that the technical staff will approve it in the long run since it's not built in the OS.

1 Answer 1

1

There isn't really a "good" way to do this the way you seem to want (short of installing an SSH server).

Two [barely] tolerable options are:

  1. To open the file over a UNC share (even the default "admin" share, if you have access to it: \\servername\driveletter$\restofthepath\file)

  2. To copy the file to the local machine, edit it, and then push it back to the remote server, overwriting the old version.

1
  • I think that mounting a share is my favorite option... haven't thought about that. Thanks!
    – RooSoft
    Feb 19, 2013 at 21:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .