ssh station1.tjhsst.eduThe user will be given a login prompt, and then will be able to login normally as though the person was sitting at the local computer.
After logging into the remote system, most systems will have the display variable set properly and then graphics commands that normally would appear on the console will be sent back across the Internet to the original computer's screen.
Example scenario:
xhost + station1.tjhsst.edu Allow traffic from station1
ssh station1.tjhsst.edu Connect to the remote host
login:dhyatt
dhyatt's password:*********
Last login: Thu Jan 10 2002 14:07:50 -0500
2.2.18
You have new mail.
optimusprime:~$
Hopefully, any graphics commands run on "optimusprime" or station1 will be
sent back to the original computer system and will display on that console
instead. If the computer still complains, it may be necessary to redirect
the system variable called DISPLAY back to the host machine too.
To check the status by typing the command called set and look at
the value of DISPLAY.
set | more
BASH=/usr/local/bin/bash
BASH_VERSINFO=([0]="2" [1]="04" [2]="0" [3]="1" [4]="release" [5]="i386-slackware-linux-gnu")
BASH_VERSION='2.04.0(1)-release'
COLUMNS=80
DIRSTACK=()
DISPLAY=optimusprime.tjhsst.edu:0
EUID=1024
GROUPS=()
HISTFILE=/home/dhyatt/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/dhyatt
HOSTNAME=mango.tjhsst.edu
...
From the information above, it can be seen that the host from which I
connected is mango.tjhsst.edu but the display is still set to
show on the console of optimusprime.tjhsst.edu. If it is not
directed to the appropriate computer to be viewed properly.
console (mango in this case), type the command:
export DISPLAY=mango.tjhsst.edu:0
This will send the display back to mango instead of trying to display on
the console of the remote computer.
To transfer files from the one computer to another on the Internet, it is necessary to transfer the files using a program like ftp, or file transfer protocol. Essentially, the user opens a connection to the distant machine and then types either