LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 03: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, 03: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 06: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, 06:43 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:14 PM
text selection question in text editor olin Linux - Software 1 09-25-2007 02:25 PM
Text Editor on Fedora Core 4 in Text Mode blong4life Linux - Software 5 07-31-2006 10:07 PM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 12:28 PM
E3 Text editor Blackout_08 Fedora 1 03-07-2005 02:21 AM


All times are GMT -5. The time now is 08:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration