LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vi text editor? (https://www.linuxquestions.org/questions/linux-newbie-8/vi-text-editor-783159/)

hadimotamedi 01-19-2010 02:21 AM

vi text editor?
 
Dear All
This is an application that I am frequently facing with :
I have a file on my Windows client containing all of the sip passwords and I have opened an ssh session with my Linux server started from the command prompt . When I want to copy something from inside the vi editor to my notepad , it can easily be done via Mark/Paste available on the command prompt utility . But sometimes I need to copy one new sip password from my notepad into the file opened with vi editor . Can you please give a solution for this application ?
Thank you

EricTRA 01-19-2010 02:30 AM

Hello,

I use SSH Secure Shell on my Windows laptop at work to access our Linux servers. Copy/paste works both ways without problems in any editor.

Kind regards,

Eric

vrmartin2 01-19-2010 05:45 AM

cygwin: get ssh and a whole lot more
 
If you install cygwin, you can get ssh and a whole lot more, including vi. When I install cygwin (http://x.cygwin.com/), I make sure I do the following:

Click on View to get Alphabetical listing, then install:
  • cpio
  • openssh
  • rcs
  • shutdown
  • unzip/zip
  • vi
  • xinit (if you want to bring up an X win session on Windows) Install from X11 package, xinit. Then you can run: xwin -query <server name>

Once installed you have ssh on Windows. But if you want "sshd" to run on Windows, so that you can do things like "scp" from Linux to windows, you can do the following:
  • Config files are in /etc from cygwin prompt or D:\cygwin\etc
  • Run ssh-host-config under cygwin
  • Overwrite existing config files
  • Should privilege separation be used? “no”
  • net start sshd
  • once working, go into windows services and make sure that sshd starts automatically

chrism01 01-19-2010 05:43 PM

I often find that to copy from MS into Linux via the MS buffer, use Ctrl-C to copy then either Ctrl-v or right click to paste. YMMV


All times are GMT -5. The time now is 03:09 PM.