Pages

Thursday, October 14, 2010

Remote Network Access to Linux or MS Windows from Linux

Accessing a remote Linux computer using the Command Line Interface (CLI):

1. Open a terminal (command line interface) on your local computer (localhost) and switch to super user mode (log in as 'root').
2. [route@username]$ ssh root@192.168.1.xxx
  • This is the address of the remote computer
3. [password:] xxxxxxxxx
  • This is the password for the remote computer
You're in!
  • ssh means 'secure shell', or to access the remote computer through a secure (encrypted) connection. This is safer than telnet, which is not encrypted.

Accessing a remote Linux or MS Windows graphical desktop (GUI) using a Virtual Network Connection (VNC):

From the web browser:

1. vnc://xxx.xxx.xxx.xxx
  • This utilizes the linux program 'vinagre'

From the linux command line interface (CLI) to a remote Linux or MS Windows graphical user interface (GUI):

1. [route@username]$ vncviewer [remote IP address]
2. [password:] xxxxxxxx
  • This is the password for the remote system

Programs that allow VNC are: VNCViewer for Windows; the combination of vncviewer and vncserver for Linux; or vinagre for Linux

Accessing one remote computer through a second remote computer (tunneling), using the Command Line Interface (CLI):

    1. [route@username]$ ssh -L 10022:192.168.xxx.xxx:22 root@192.168.1.xxx
    2. [password:] xxxxxxxxxxx

    • This is the password for the "root@192.168.1.xxx" address, through which you will be accessing the other computer
    • ssh means 'secure shell', or to access the remote computer through a secure (encrypted) connection. This is safer than telnet, which is not encrypted.
    • -L means 'link'
    • 10022 is the port on the local machine that will be used for the link. Any port number above 1000 or 2000 should be free of conflicts with other programs and usable for this designation.
    • 22 means that you will access the remote computer through its own port 22.
    • root@ means you will be logging in as root to the remote computer that will be used as a tunnel for the 192.168.xxx.xxx remote computer. 'root@' can actually be left off, because this is assumed by ssh if no designation is made.
    3. Next, open a second terminal screen, or tab on the current terminal, and switch to super user mode (root), then:
    4. [route@username]$ ssh -p 10022 root@localhost
    • or you can use... ssh -p 10022 -l root localhost
    • 'root' and 'localhost' have to be entered as they are shown, because these reference the port usage for the local system
    5. [password:] xxxxxxxxxx 
    • This is the password of the 192.168.xxx.xxx:22 from the previous command
    You're in!

    No comments:

    Post a Comment