LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2004, 01:14 PM   #1
The_Fed
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1
Posts: 4

Rep: Reputation: 0
Opening remote files (during ssh session) with applications on local computer?


Hello all!


I have an ssh session running.Now i want open the files on the remote system using software on my (local system).For example i want to open a file " exam.txt" on the remote system using a my local text editor application.

Hope i am clear.

Thank you
The Fed(ora) user.
 
Old 05-10-2004, 01:54 PM   #2
calble
LQ Newbie
 
Registered: Aug 2003
Location: Louisville, KY or Evansville, IN
Distribution: Fedora Core 3
Posts: 29

Rep: Reputation: 15
Well two ways come to mind to help you work around your problem. Neither of them are exactly what you are wanting, but could be at least a workaround. First you could install you text editing program on the remote machine. Second you could transfer your text file to your machine and then transfer it back. You would go about using a program that supports scp, sftp, or ftip protocols. I am a mandrake user and I just use DrakSync. You could probably use gftp to login and navigate your files much like ftping into a web server.

Hope that helps some,
Noah
 
Old 05-10-2004, 02:43 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: Opening remote files (during ssh session) with applications on local computer?

Quote:
Originally posted by The_Fed
I have an ssh session running.Now i want open the files on the remote system using software on my (local system).For example i want to open a file " exam.txt" on the remote system using a my local text editor application.
Clear but impossible ... you could pipe the file into
a local session, but you couldn't save it back into
the stream you used to get it there... as calble pointed
out, copying the file or running a remote editor are the
only real options.

Unless, of course, you mean sed or awk when you say
local editor application ;)


Cheers,
Tink
 
Old 05-10-2004, 04:20 PM   #4
zexxxx
LQ Newbie
 
Registered: May 2004
Distribution: Debian, Redhat, Gentoo
Posts: 2

Rep: Reputation: 0
Here's my assumptions based on your post:
- Your local text application is GUI based (Eg: Xemacs)
- You are running the SSH session in the GUI (X, KDE, Gnome, etc)
- You can install stuff on the remote machine

Your solution:
- Install your text application on the remote machine
- In the SSH session
# export DISPLAY=IPOFLOCALMACHINE:0
# editorpath exam.txt &

For example:
# export DISPLAY=192.168.1.5:0
# xemacs exam.txt &

The remote application will display on your local machine.

NOTE: You will need to ensure the XDM protocol is allowed on your local machine. Check out http://www.tldp.org/HOWTO/XDMCP-HOWTO/ for more details on that.

NOTE: Also, note that your firewall on the local and remote machines might cause problems. Ensure the right ports are opened. (Search /etc/services for xdm I think)
 
  


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
copy files from telnet session to local drive rkemp Linux - Networking 7 03-11-2009 05:01 AM
running X applications on remote machine when logged in via ssh servnov Linux - General 1 08-15-2005 08:53 PM
mounting local hard drive in a remote shell (SSH) noir911 Linux - General 1 06-24-2005 05:55 AM
View remote SSH session nikko Slackware 2 06-17-2004 01:46 AM
Backing up remote Linux Server to Local Win2KPro CD-RW over SSH McK66 Linux - General 3 06-08-2004 09:05 PM

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

All times are GMT -5. The time now is 10:49 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