LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06: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 06:36 AM.
 
Old 03-12-2011, 08:15 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

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


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


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