LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2010, 02:21 AM   #1
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
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
 
Old 01-19-2010, 02:30 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 01-19-2010, 05:45 AM   #3
vrmartin2
Member
 
Registered: Dec 2009
Location: NE Ohio
Distribution: Open SUSE
Posts: 43

Rep: Reputation: 19
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
 
Old 01-19-2010, 05:43 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] All text in text editor turned to boxes... unclerick94 Linux - Newbie 2 07-17-2009 04:14 PM
text selection question in text editor olin Linux - Software 1 09-25-2007 01:25 PM
Text Editor on Fedora Core 4 in Text Mode blong4life Linux - Software 5 07-31-2006 09:07 PM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
E3 Text editor Blackout_08 Fedora 1 03-07-2005 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration