LinuxQuestions.org
Help answer threads with 0 replies.
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 03-12-2011, 05:33 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
Open remote html files in a brower (ssh connection)


Hi,

I've an network architecture where for the user to reach the machine that it want, it has to pass through a frontend machine.

Code:
User ---> Frontend ----> Machine1
The connections between all hosts uses ssh. If I want to reach the Machine1, I've to authenticate to the Frontend and authenticate again to the Machine1. The Machine1 and the Frontend doesn't have X installed - only console mode.

The Machine1 has the file in my HOME directory called: hello.html that contains flash embedded. I would like to view the hello.html in my browser located at the User machine.

Is there a way to access remotely to the html file, without have to copy the file to my local machine?

Last edited by xeon123; 03-12-2011 at 05:36 AM.
 
Old 03-12-2011, 07:15 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Ameliorating http://souptonuts.sourceforge.net/sshtips.htm with FUSE SSHFS in 3 easy steps:

# 0. Install FUSE and SSHFS if you haven't got it already.

1. Create "~/.ssh/config-sshfs-tunnel" on User:
Code:
Host Frontend
HostName 192.168.1.1
        User xeon123
        LocalForward 50000 192.168.1.2:22

Host Machine1
HostName 192.168.1.2
        User xeon123
        Port 50000
2. Commands to run on User:
Code:
mkdir /home/xeon123/sshfs_mount_point_name/
ssh -F ~/.ssh/config-sshfs-tunnel Frontend
sshfs -F ~/.ssh/config-sshfs-tunnel -p 50000 xeon123@localhost:/home/xeon123 /home/xeon123/sshfs_mount_point_name/
web_browser ~/sshfs_mount_point_name/hello.html
# Run 'fusermount -u /home/xeon123/sshfs_mount_point_name/' to umount.
 
  


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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
LXer: ssh-xfer: Quickly grabbing files over an existing SSH connection LXer Syndicated Linux News 0 08-08-2008 03:11 PM
SSH connection to remote machine... harishkrishnan Linux - Networking 5 11-10-2007 12:35 AM
Remote Connection Using SSH sudheer.guduru Linux - Server 1 08-22-2006 05:05 AM
is there an html editor with remote files editing capabilities? odysseus.lost Linux - Software 2 06-16-2005 07:23 AM

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

All times are GMT -5. The time now is 02:03 AM.

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