Differences between revisions 7 and 13 (spanning 6 versions)
Revision 7 as of 2014-03-07 18:41:51
Size: 577
Editor: frank
Comment:
Revision 13 as of 2014-03-07 18:58:38
Size: 884
Editor: frank
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Tech/SSHTunnel
## page was renamed from Tech/SSHTunel
Line 2: Line 4:
Line 12: Line 13:
ssh <oracle db host> -L 8081:localhost:8080}}}      ssh -L 8081:localhost:8080 <oracle db host>
}}}
Line 14: Line 16:
    http://localhost:8081/apex   http://localhost:8081/apex
Line 17: Line 19:

=== SSH file transport ===
{{{
$ tar -cf - xen_el5_i386_para | gzip -c -9 | ssh root@ostest117 "gzip -dc | tar -xf - -C /OVS/rpool"
$ tar czf - xen_el5_i386_para | ssh root@ostest117 "tar xzf - -C /OVS/rpool"
}}}

ssh tunnel ssh -L

How to access the Database Home Page "http://127.0.0.1:8080/apex" remotely using ssh tunnel.

  1. install sshd package on your local machine
  2. add a line in /etc/sshd/sshd_config

         AllowTcpForwarding yes
  3. restart sshd service
  4. ssh to start tunnel

         ssh -L 8081:localhost:8080 <oracle db host>
  5. login to db web admin console

         http://localhost:8081/apex
  6. login with 'SYS' account, then click the 'Administration' button, 'Tasks - Manage HTTP Access' , then enable HTTP access from remote clients.

SSH file transport

$ tar -cf - xen_el5_i386_para | gzip -c -9 | ssh root@ostest117 "gzip -dc | tar -xf - -C /OVS/rpool"
$ tar czf - xen_el5_i386_para | ssh root@ostest117 "tar xzf - -C /OVS/rpool"

Tech/SSH (last edited 2014-03-07 18:58:38 by frank)