Remote Access in Linux

Introduction
This page introduces different possibilities to access unix or windows system remotely.

Telnet
TELNET is a network protocol used on the Internet or local area network LAN connections. The purpose of the

TELNET Protocol is to provide a fairly general, bi-directional, eight-bit byte oriented communications facility.

TELNET is a client-server protocol, based on TCP, and clients generally connect to port 23 on the host providing the

service programs, it is also possible to use a TELNET program to establish an interactive TCP connection of the

protocol and a means of defining and implementing extensions.

Pre-requistes

- The remote computer must have a telnet server (daemon) programm installed and running.

Use

$ telnet  [ ]

The parameter port is optional. You should be prompted to enter the user name and password.

VNC
Pre-requistes

- The remote computer must have the programm vncserver installed.

Use


 * 1) Use telnet or ssh to connect to the remote computer.
 * 2) Under your home directory create a directory called .vnc
 * 3) execute the command vncpasswd and create a password for your user.
 * 4) start the vncserver if it was not started with the command vncserver &
 * 5) Start a VNC client in your local computer.

Ready. Now you can control the remote computer from a windows or linux operational system with a VNC client.

rdesktop
Use rdesktop to connect on a windows operational system that permits remote desktop connections.

rdesktop -u administrator -k de -g 1024x768


 * -u
 * User


 * -k
 * Keyboard layout


 * -g
 * Resolution in pixels (WxH = Width x Height)


 * Server name or IP address
 * Server name or IP address

SSH
SSH is more secure than telnet and can be used normally as remote desktop using the unix platform. There are some

SSH client software for windows like Putty

Pre-requistes

- The remote computer must have a ssh server (daemon) programm installed and running.

Use


 * Execute locally the command bellow. It will accept all graphic calls from remote computers. It is not secure to

specify this option. See the manual pages for more info.

$ xhost +


 * Then connect to the remote computer executing the following command:

$ ssh - x -l 

In this case substitute   for an authorized login name in the remote computer. You should be prompted

to enter the password.

You are now logged on into the remote computer. The last step is to export the environment variable DISPLAY to

your computer, like this:

$ export DISPLAY=:0.0

Test it with:

$ xclock &

Ready. You should see a clock in your desktop. Remember that the programm xclock is runnning remotely, but the

graphics and interaction are in your display locally.

Remote access in Linux 